Skip to content

Commit

Permalink
Ignore part of cluster check (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Sep 23, 2024
1 parent 5fe3c27 commit 6b15893
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/k8s/cmd/k8s/k8s_x_snapd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ func newXSnapdConfigCmd(env cmdutil.ExecutionEnvironment) *cobra.Command {
ctx, cancel := context.WithTimeout(cmd.Context(), opts.timeout)
defer cancel()
if err := control.WaitUntilReady(ctx, func() (bool, error) {
_, partOfCluster, err := client.NodeStatus(cmd.Context())
if !partOfCluster {
cmd.PrintErrf("Node is not part of a cluster: %v\n", err)
env.Exit(1)
}
_, _, err := client.NodeStatus(cmd.Context())
return err == nil, nil
}); err != nil {
cmd.PrintErrf("Error: k8sd did not come up in time: %v\n", err)
Expand Down

0 comments on commit 6b15893

Please sign in to comment.