From 493969588e9b8a67cb8ad56db3c6a69e6fac8df0 Mon Sep 17 00:00:00 2001
From: Florian Ruynat <16313165+floryut@users.noreply.github.com>
Date: Fri, 8 Sep 2023 16:18:16 +0200
Subject: [PATCH] Use cluster_name variable instead of hardcoded value in
 cinder-csi controller plugin (#10422)

---
 .../cinder/templates/cinder-csi-controllerplugin.yml.j2         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/kubernetes-apps/csi_driver/cinder/templates/cinder-csi-controllerplugin.yml.j2 b/roles/kubernetes-apps/csi_driver/cinder/templates/cinder-csi-controllerplugin.yml.j2
index b0b8f78fd..4fe7e475c 100644
--- a/roles/kubernetes-apps/csi_driver/cinder/templates/cinder-csi-controllerplugin.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/cinder/templates/cinder-csi-controllerplugin.yml.j2
@@ -111,7 +111,7 @@ spec:
             - name: CLOUD_CONFIG
               value: /etc/config/cloud.conf
             - name: CLUSTER_NAME
-              value: kubernetes
+              value: {{ cluster_name }}
           ports:
             - containerPort: 9808
               name: healthz
-- 
GitLab