Skip to content

Commit cf98bd5

Browse files
committed
capv: Remove unneeded auth env vars
VSPHERE_USERNAME and VSPHERE_PASSWORD environmental variables are not required. `pkg/asset/manifests/vsphere/cluster.go` is used instead of authentication.
1 parent 882a294 commit cf98bd5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/clusterapi/system.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
193193
case nutanix.Name:
194194
// TODO
195195
case vsphere.Name:
196-
vcenters := installConfig.Config.VSphere.VCenters
197-
198196
controllers = append(controllers,
199197
c.getInfrastructureController(
200198
&VSphere,
@@ -207,8 +205,6 @@ func (c *system) Run(ctx context.Context, installConfig *installconfig.InstallCo
207205
"--leader-elect=false",
208206
},
209207
map[string]string{
210-
"VSPHERE_USERNAME": vcenters[0].Username,
211-
"VSPHERE_PASSWORD": vcenters[0].Password,
212208
"EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION": "true",
213209
"EXP_CLUSTER_RESOURCE_SET": "true",
214210
},

0 commit comments

Comments
 (0)