Skip to content

Commit

Permalink
Make the output of the istioctl verify-install command more readable (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v authored and istio-testing committed Aug 9, 2019
1 parent b5101de commit 6c05fa1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions istioctl/pkg/install/pre-check.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "Checking the cluster to make sure it is ready for Istio installation...\n")
fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "Kubernetes-api\n")
fmt.Fprintf(writer, "#1. Kubernetes-api\n")
fmt.Fprintf(writer, "-----------------------\n")
var errs error
c, err := clientExecFactory(restClientGetter)
Expand All @@ -71,7 +71,7 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
fmt.Fprintf(writer, "Can query the Kubernetes API Server.\n")
}
fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "Kubernetes-version\n")
fmt.Fprintf(writer, "#2. Kubernetes-version\n")
fmt.Fprintf(writer, "-----------------------\n")
res, err := checkKubernetesVersion(v)
if err != nil {
Expand All @@ -85,8 +85,8 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
fmt.Fprintf(writer, "Istio is compatible with Kubernetes: %v.\n", v)
}

fmt.Fprintf(writer, "\n\n")
fmt.Fprintf(writer, "Istio-existence\n")
fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "#3. Istio-existence\n")
fmt.Fprintf(writer, "-----------------------\n")
_, err = c.getNameSpace(istioNamespaceFlag)
if err == nil {
Expand All @@ -98,7 +98,7 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
}

fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "Kubernetes-setup\n")
fmt.Fprintf(writer, "#4. Kubernetes-setup\n")
fmt.Fprintf(writer, "-----------------------\n")
Resources := []struct {
namespace string
Expand Down Expand Up @@ -180,7 +180,7 @@ func installPreCheck(istioNamespaceFlag string, restClientGetter resource.RESTCl
}

fmt.Fprintf(writer, "\n")
fmt.Fprintf(writer, "SideCar-Injector\n")
fmt.Fprintf(writer, "#5. SideCar-Injector\n")
fmt.Fprintf(writer, "-----------------------\n")
err = c.checkMutatingWebhook()
if err != nil {
Expand Down

0 comments on commit 6c05fa1

Please sign in to comment.