Skip to content

Commit

Permalink
internal/cli/cmd: mark --skip-ip-cache-check as hidden
Browse files Browse the repository at this point in the history
Follow-up for #503 to address
#503 (comment)

Also add a comment so we don't forget to re-enable the check again once
issue #361 is resolved.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Sep 1, 2021
1 parent 088eb3f commit 89639cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connectivity/check/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ func (ct *ConnectivityTest) validateDeployment(ctx context.Context) error {
}
}

// TODO: unconditionally re-enable the IPCache check once
// https://github.com/cilium/cilium-cli/issues/361 is resolved.
if ct.params.SkipIPCacheCheck {
ct.Infof("Skipping IPCache check")
} else {
Expand Down
1 change: 1 addition & 0 deletions internal/cli/cmd/connectivity.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func newCmdConnectivityTest() *cobra.Command {
cmd.Flags().BoolVarP(&params.Debug, "debug", "d", false, "Show debug messages")
cmd.Flags().BoolVarP(&params.PauseOnFail, "pause-on-fail", "p", false, "Pause execution on test failure")
cmd.Flags().BoolVar(&params.SkipIPCacheCheck, "skip-ip-cache-check", true, "Skip IPCache check")
cmd.Flags().MarkHidden("skip-ip-cache-check")

return cmd
}

0 comments on commit 89639cb

Please sign in to comment.