Skip to content

Commit

Permalink
fix(kubernetes-sigs#1162): add TLS Thumprint to vsphere-csi.conf
Browse files Browse the repository at this point in the history
    fixes the vsphere-csi-controller crashLoopBackOff due to untrusted https connection to vcenter
  • Loading branch information
ulrichgi committed Jul 23, 2021
1 parent 43ac726 commit e3d9603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packaging/flavorgen/flavors/crs/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func ConfigForCSI() *infrav1.CPIConfig {
config := &infrav1.CPIConfig{}

config.Global.ClusterID = fmt.Sprintf("%s/%s", env.NamespaceVar, env.ClusterNameVar)
config.Global.Thumbprint = env.VSphereThumbprint
config.Network.Name = env.VSphereNetworkVar

config.VCenter = map[string]infrav1.CPIVCenterConfig{
Expand Down
1 change: 1 addition & 0 deletions pkg/services/cloudprovider/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ func ConfigForCSI(vsphereCluster infrav1.VSphereCluster, cluster clusterv1.Clust

config.Global.ClusterID = fmt.Sprintf("%s/%s", cluster.Namespace, cluster.Name)
config.Global.Insecure = vsphereCluster.Spec.CloudProviderConfiguration.Global.Insecure
config.Global.Thumbprint = vsphereCluster.Spec.CloudProviderConfiguration.Global.Thumbprint
config.Network.Name = vsphereCluster.Spec.CloudProviderConfiguration.Network.Name

config.VCenter = map[string]infrav1.CPIVCenterConfig{}
Expand Down

0 comments on commit e3d9603

Please sign in to comment.