Skip to content

Commit a2a53ce

Browse files
authored
[cinder-csi-plugin] add clusterID Helm value (kubernetes#1741)
1 parent b470842 commit a2a53ce

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

charts/cinder-csi-plugin/templates/controllerplugin-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ spec:
115115
- name: CLOUD_CONFIG
116116
value: /etc/kubernetes/cloud-config
117117
- name: CLUSTER_NAME
118-
value: kubernetes
118+
value: "{{ .Values.clusterID }}"
119119
ports:
120120
- containerPort: 9808
121121
name: healthz

charts/cinder-csi-plugin/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,4 +140,8 @@ storageClass:
140140
# driver: cinder.csi.openstack.org
141141
# deletionPolicy: Delete
142142

143+
# You may set ID of the cluster where openstack-cinder-csi is deployed. This value will be appended
144+
# to volume metadata in newly provisioned volumes as `cinder.csi.openstack.org/cluster=<cluster ID>`.
145+
clusterID: "kubernetes"
146+
143147
priorityClassName: ""

0 commit comments

Comments
 (0)