Skip to content

Commit 8211143

Browse files
Merge pull request #1769 from bertinatto/tools-image
OCPBUGS-37488: csi: add tools image to csi controller
2 parents 8bb8fe6 + e4ad779 commit 8211143

File tree

1 file changed

+6
-0
lines changed
  • pkg/operator/csi/csidrivercontrollerservicecontroller

1 file changed

+6
-0
lines changed

pkg/operator/csi/csidrivercontrollerservicecontroller/helpers.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const (
3535
snapshotterImageEnvName = "SNAPSHOTTER_IMAGE"
3636
livenessProbeImageEnvName = "LIVENESS_PROBE_IMAGE"
3737
kubeRBACProxyImageEnvName = "KUBE_RBAC_PROXY_IMAGE"
38+
toolsImageEnvName = "TOOLS_IMAGE"
3839

3940
infraConfigName = "cluster"
4041
)
@@ -208,6 +209,11 @@ func WithPlaceholdersHook(configInformer configinformers.SharedInformerFactory)
208209
pairs = append(pairs, []string{"${KUBE_RBAC_PROXY_IMAGE}", kubeRBACProxy}...)
209210
}
210211

212+
tools := os.Getenv(toolsImageEnvName)
213+
if tools != "" {
214+
pairs = append(pairs, []string{"${TOOLS_IMAGE}", tools}...)
215+
}
216+
211217
// Cluster ID
212218
pairs = append(pairs, []string{"${CLUSTER_ID}", clusterID}...)
213219

0 commit comments

Comments
 (0)