Skip to content

Commit

Permalink
Register cluster
Browse files Browse the repository at this point in the history
Print a message when operation succeeds.
Same message is printed when cluster is registered for the first time or updated.
  • Loading branch information
mgianluc committed Dec 3, 2024
1 parent 97c4fec commit cba5984
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/commands/onboard/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ func onboardSveltosCluster(ctx context.Context, clusterNamespace, clusterName st
return err
}

return patchSecret(ctx, clusterNamespace, secretName, kubeconfigData, logger)
err = patchSecret(ctx, clusterNamespace, secretName, kubeconfigData, logger)
if err != nil {
return err
}

//nolint: forbidigo // print success message
fmt.Printf("cluster %s successfully registered/updated in namespace %s.", clusterName, clusterNamespace)
return nil
}

func patchSveltosCluster(ctx context.Context, clusterNamespace, clusterName string,
Expand Down

0 comments on commit cba5984

Please sign in to comment.