Skip to content

Commit

Permalink
Ignore part of cluster check
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Sep 20, 2024
1 parent d189816 commit 135b3d1
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 135b3d1

Please sign in to comment.