Skip to content

Commit be76a3a

Browse files
authored
Merge pull request #600 from andrewsykim/default-insecure
default insecure: true in the cloud provider since CAPV doesn't manage vCenter certificates yet
2 parents a88b442 + e3868e5 commit be76a3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/default/cluster/cluster.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ spec:
2626
global:
2727
secretName: "cloud-provider-vsphere-credentials"
2828
secretNamespace: "kube-system"
29+
insecure: true
2930
virtualCenter:
3031
"${VSPHERE_SERVER}":
3132
datacenters: "${VSPHERE_DATACENTER}"

pkg/cloud/vsphere/services/cloudprovider/csi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ func ConfigForCSI(ctx *context.ClusterContext) *cloudprovider.Config {
565565
config := &cloudprovider.Config{}
566566

567567
config.Global.ClusterID = fmt.Sprintf("%s/%s", ctx.Cluster.Namespace, ctx.Cluster.Name)
568-
config.Global.Insecure = false
568+
config.Global.Insecure = ctx.VSphereCluster.Spec.CloudProviderConfiguration.Global.Insecure
569569
config.Network.Name = ctx.VSphereCluster.Spec.CloudProviderConfiguration.Network.Name
570570

571571
config.VCenter = map[string]cloudprovider.VCenterConfig{}

0 commit comments

Comments
 (0)