Skip to content

Commit

Permalink
skip pre-check if failed to connect to k8s api server (istio#16122)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdingbj authored and istio-testing committed Aug 21, 2019
1 parent 7e1b986 commit ed6011a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions istioctl/pkg/install/pre-check.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
if err != nil {
errs = multierror.Append(errs, fmt.Errorf("failed to query the Kubernetes API Server: %v", err))
fmt.Fprintf(writer, fmt.Sprintf("Failed to query the Kubernetes API Server: %v.\n", err))
} else {
fmt.Fprintf(writer, "Can query the Kubernetes API Server.\n")
fmt.Fprintf(writer, "Istio install NOT verified because the cluster is unreachable.\n")
return errs
}
fmt.Fprintf(writer, "Can query the Kubernetes API Server.\n")

fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "#2. Kubernetes-version\n")
fmt.Fprintf(writer, "-----------------------\n")
Expand Down

0 comments on commit ed6011a

Please sign in to comment.