Skip to content

Commit

Permalink
Set InsecureFlag true for vsphere yaml output.
Browse files Browse the repository at this point in the history
  • Loading branch information
vr4manta committed May 8, 2024
1 parent b82f221 commit 507d90e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/asset/manifests/vsphere/cloudproviderconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ func CloudProviderConfigYaml(infraID string, p *vspheretypes.Platform) (string,
vCenterPort = vCenter.Port
}
vCenterConfig := cloudconfig.VirtualCenterConfigYAML{
VCenterIP: vCenter.Server,
VCenterPort: uint(vCenterPort),
Datacenters: vCenter.Datacenters,
VCenterIP: vCenter.Server,
VCenterPort: uint(vCenterPort),
Datacenters: vCenter.Datacenters,
InsecureFlag: true,
}
vCenters[vCenter.Server] = &vCenterConfig
}
Expand All @@ -43,6 +44,7 @@ func CloudProviderConfigYaml(infraID string, p *vspheretypes.Platform) (string,
Global: cloudconfig.GlobalYAML{
SecretName: "vsphere-creds",
SecretNamespace: "kube-system",
InsecureFlag: true,
},
Vcenter: vCenters,
Labels: cloudconfig.LabelsYAML{
Expand Down

0 comments on commit 507d90e

Please sign in to comment.