Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Jul 23, 2024
1 parent e6b8ed4 commit 2c15fac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packaging/flavorgen/flavors/crs/cpi.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package crs

import (
"fmt"
"strings"

"github.com/pkg/errors"
appsv1 "k8s.io/api/apps/v1"
Expand Down Expand Up @@ -108,6 +109,8 @@ func CreateCrsResourceObjectsCPI(crs *addonsv1.ClusterResourceSet) []runtime.Obj
cpiObjects = append(cpiObjects, cpiDaemonSet)

manifestsCm := newConfigMapManifests("cpi-manifests", cpiObjects)
// Ensure the VSPHERE_INSECURE_CPI variable is in-between ticks.
manifestsCm.Data["data"] = strings.ReplaceAll(manifestsCm.Data["data"], "${VSPHERE_INSECURE_CPI:=false}", "\"${VSPHERE_INSECURE_CPI:=false}\"")
appendConfigMapToCrsResource(crs, manifestsCm)
// Define the kubeconfig secret for the target cluster.

Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-external-loadbalancer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ data:
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: VSPHERE_INSECURE
value: ${VSPHERE_INSECURE_CPI:=false}
value: "${VSPHERE_INSECURE_CPI:=false}"
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:${CPI_IMAGE_K8S_VERSION}
name: vsphere-cloud-controller-manager
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-ignition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ data:
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: VSPHERE_INSECURE
value: ${VSPHERE_INSECURE_CPI:=false}
value: "${VSPHERE_INSECURE_CPI:=false}"
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:${CPI_IMAGE_K8S_VERSION}
name: vsphere-cloud-controller-manager
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-node-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ data:
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: VSPHERE_INSECURE
value: ${VSPHERE_INSECURE_CPI:=false}
value: "${VSPHERE_INSECURE_CPI:=false}"
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:${CPI_IMAGE_K8S_VERSION}
name: vsphere-cloud-controller-manager
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ data:
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: VSPHERE_INSECURE
value: ${VSPHERE_INSECURE_CPI:=false}
value: "${VSPHERE_INSECURE_CPI:=false}"
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:${CPI_IMAGE_K8S_VERSION}
name: vsphere-cloud-controller-manager
resources:
Expand Down
2 changes: 1 addition & 1 deletion templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ data:
- --cloud-config=/etc/cloud/vsphere.conf
env:
- name: VSPHERE_INSECURE
value: ${VSPHERE_INSECURE_CPI:=false}
value: "${VSPHERE_INSECURE_CPI:=false}"
image: gcr.io/cloud-provider-vsphere/cpi/release/manager:${CPI_IMAGE_K8S_VERSION}
name: vsphere-cloud-controller-manager
resources:
Expand Down

0 comments on commit 2c15fac

Please sign in to comment.