Skip to content

Commit

Permalink
Subctl diagnose all should run on all clusters
Browse files Browse the repository at this point in the history
Make sure that subctl diagnose all will execute all checks
even if one check failed
Also applys to ExecuteMultiCluster when need to execute
command on multiple clusters

Signed-off-by: Maayan Friedman <maafried@redhat.com>
  • Loading branch information
maayanf24 authored and tpantelis committed Jun 18, 2021
1 parent 6481d73 commit 8eb5ecb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pkg/subctl/cmd/diagnose/all.go
Expand Up @@ -47,25 +47,25 @@ func diagnoseAll(cluster *cmd.Cluster) bool {
return success
}

success = success && checkCNIConfig(cluster)
success = checkCNIConfig(cluster) && success
fmt.Println()

success = success && checkConnections(cluster)
success = checkConnections(cluster) && success
fmt.Println()

success = success && checkPods(cluster)
success = checkPods(cluster) && success
fmt.Println()

success = success && checkOverlappingCIDRs(cluster)
success = checkOverlappingCIDRs(cluster) && success
fmt.Println()

success = success && checkKubeProxyMode(cluster)
success = checkKubeProxyMode(cluster) && success
fmt.Println()

success = success && checkFirewallMetricsConfig(cluster)
success = checkFirewallMetricsConfig(cluster) && success
fmt.Println()

success = success && checkVxLANConfig(cluster)
success = checkVxLANConfig(cluster) && success
fmt.Println()

fmt.Printf("Skipping tunnel firewall check as it requires two kubeconfigs." +
Expand Down
2 changes: 1 addition & 1 deletion pkg/subctl/cmd/execute.go
Expand Up @@ -99,7 +99,7 @@ func ExecuteMultiCluster(run func(*Cluster) bool) {
continue
}

success = success && run(cluster)
success = run(cluster) && success
fmt.Println()
}

Expand Down

0 comments on commit 8eb5ecb

Please sign in to comment.