Skip to content

Commit 86639c0

Browse files
ivanapesttts
andauthored
Update examples/fleet/main.go
Co-authored-by: Dr. Stefan Schimanski <[email protected]>
1 parent 9ce51b8 commit 86639c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/fleet/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ func (k *KindClusterProvider) Run(ctx context.Context, mgr manager.Manager) erro
186186
k.log.Info("failed to create rest config", "error", err)
187187
return false, nil // keep going
188188
}
189-
// Copy provider options and append the cluster name
190-
clOptions := append(k.Options, cluster.WithName(clusterName))
191-
189+
clOptions := append([]cluster.Option{cluster.WithName(clusterName)}, k.Options...)
192190
cl, err := cluster.New(cfg, clOptions...)
193191
if err != nil {
194192
k.log.Info("failed to create cluster", "error", err)

0 commit comments

Comments
 (0)