Skip to content

Commit

Permalink
add istioctl precheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhengzheYang committed Jul 12, 2021
1 parent 174be24 commit 244211a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions asmcli/asmcli

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 11 additions & 4 deletions asmcli/commands/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ validate() {
validate_dependencies
validate_control_plane

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

if only_enable; then
info "Successfully performed specified --enable actions."
istioctl_precheck

if [[ "${ONLY_VALIDATE}" -eq 1 ]]; then
info "Successfully validated all requirements to install ASM in this environment."
exit 0
fi
}
Expand Down Expand Up @@ -89,3 +91,8 @@ validate_control_plane() {
validate_in_cluster_control_plane
fi
}

istioctl_precheck() {
# precheck inspects a Kubernetes cluster for Istio install and upgrade requirements.
istioctl x precheck
}

0 comments on commit 244211a

Please sign in to comment.