Skip to content

Commit 244211a

Browse files
committed
add istioctl precheck
1 parent 174be24 commit 244211a

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

asmcli/asmcli

Lines changed: 11 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asmcli/commands/validate.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ validate() {
1515
validate_dependencies
1616
validate_control_plane
1717

18-
if [[ "${ONLY_VALIDATE}" -eq 1 ]]; then
19-
info "Successfully validated all requirements to install ASM in this environment."
18+
if only_enable; then
19+
info "Successfully performed specified --enable actions."
2020
exit 0
2121
fi
2222

23-
if only_enable; then
24-
info "Successfully performed specified --enable actions."
23+
istioctl_precheck
24+
25+
if [[ "${ONLY_VALIDATE}" -eq 1 ]]; then
26+
info "Successfully validated all requirements to install ASM in this environment."
2527
exit 0
2628
fi
2729
}
@@ -89,3 +91,8 @@ validate_control_plane() {
8991
validate_in_cluster_control_plane
9092
fi
9193
}
94+
95+
istioctl_precheck() {
96+
# precheck inspects a Kubernetes cluster for Istio install and upgrade requirements.
97+
istioctl x precheck
98+
}

0 commit comments

Comments
 (0)