Skip to content

Commit

Permalink
Update examples/fleet/main.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
  • Loading branch information
ivanape and sttts committed May 27, 2024
1 parent 9ce51b8 commit 86639c0
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 86639c0

Please sign in to comment.