Skip to content

Commit

Permalink
Merge pull request #315 from gianlucam76/register-cluster-response
Browse files Browse the repository at this point in the history
Register cluster
  • Loading branch information
gianlucam76 authored Dec 3, 2024
2 parents 97c4fec + cba5984 commit bb139d7
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 bb139d7

Please sign in to comment.