Skip to content

Commit

Permalink
fix yml format error by remove the incorrect(unnecessary) code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDXY committed Sep 6, 2023
1 parent 31b8129 commit 155db12
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions controllers/vmware/test/controllers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package test
import (
"context"
"fmt"
"os"
"reflect"
"time"

Expand Down Expand Up @@ -208,16 +207,6 @@ func updateClusterInfraRef(cluster *clusterv1.Cluster, infraCluster client.Objec
}

func getManager(cfg *rest.Config, networkProvider string) manager.Manager {
contentFmt := `username: '%s'
password: '%s'
`
tmpFile, err := os.CreateTemp("", "creds")
Expect(err).NotTo(HaveOccurred())

content := fmt.Sprintf(contentFmt, cfg.Username, cfg.Password)
_, err = tmpFile.Write([]byte(content))
Expect(err).NotTo(HaveOccurred())

opts := manager.Options{
Options: ctrlmgr.Options{
Scheme: scheme.Scheme,
Expand All @@ -230,7 +219,6 @@ func getManager(cfg *rest.Config, networkProvider string) manager.Manager {
},
KubeConfig: cfg,
NetworkProvider: networkProvider,
CredentialsFile: tmpFile.Name(),
}

controllerOpts := controller.Options{MaxConcurrentReconciles: 10}
Expand Down

0 comments on commit 155db12

Please sign in to comment.