Skip to content

Commit

Permalink
Merge branch 'sttts-cluster-support' of https://github.com/ivanape/co…
Browse files Browse the repository at this point in the history
…ntroller-runtime into sttts-cluster-support
  • Loading branch information
ivanape committed May 27, 2024
2 parents 2f0deff + 86639c0 commit 9391114
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/fleet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ func (k *KindClusterProvider) Run(ctx context.Context, mgr manager.Manager) erro
k.log.Info("failed to create rest config", "error", err)
return false, nil // keep going
}
// Copy provider options and append the cluster name
clOptions := append(k.Options, cluster.WithName(clusterName))

clOptions := append([]cluster.Option{cluster.WithName(clusterName)}, k.Options...)
cl, err := cluster.New(cfg, clOptions...)
if err != nil {
k.log.Info("failed to create cluster", "error", err)
Expand Down

0 comments on commit 9391114

Please sign in to comment.