From 6d543b830aa997873e7c2c59f2721fe6f27d7acc Mon Sep 17 00:00:00 2001
From: yasintahaerol <60858615+yasintahaerol@users.noreply.github.com>
Date: Thu, 7 Jul 2022 20:31:35 +0300
Subject: [PATCH] Fix vcloud-csi bug related to #9046 (#9066)

* Fix vcloud-csi bug related to #9046

Signed-off-by: yasintahaerol <yasintahaerol@gmail.com>

* add supervisor-fss-namespace=kube-system flag to vsphere-csi-controller-deployment

Signed-off-by: yasintahaerol <yasintahaerol@gmail.com>
---
 .../vsphere/templates/vsphere-csi-controller-deployment.yml.j2  | 2 ++
 .../csi_driver/vsphere/templates/vsphere-csi-node.yml.j2        | 1 +
 2 files changed, 3 insertions(+)

diff --git a/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2 b/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2
index 8ff8f6daf..97be182c2 100644
--- a/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-controller-deployment.yml.j2
@@ -91,6 +91,7 @@ spec:
           args:
             - "--fss-name=internal-feature-states.csi.vsphere.vmware.com"
             - "--fss-namespace=kube-system"
+            - "--supervisor-fss-namespace=kube-system"
             - "--use-gocsi=false"
           imagePullPolicy: {{ k8s_image_pull_policy }}
           env:
@@ -150,6 +151,7 @@ spec:
             - "--leader-election"
             - "--fss-name=internal-feature-states.csi.vsphere.vmware.com"
             - "--fss-namespace=kube-system"
+            - "--supervisor-fss-namespace=kube-system"
           imagePullPolicy: {{ k8s_image_pull_policy }}
           ports:
             - containerPort: 2113
diff --git a/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2 b/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2
index 1b55d629a..322267199 100644
--- a/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2
+++ b/roles/kubernetes-apps/csi_driver/vsphere/templates/vsphere-csi-node.yml.j2
@@ -58,6 +58,7 @@ spec:
         args:
           - "--fss-name=internal-feature-states.csi.vsphere.vmware.com"
           - "--fss-namespace=kube-system"
+          - "--supervisor-fss-namespace=kube-system"
           - "--use-gocsi=false"
         imagePullPolicy: "Always"
         env:
-- 
GitLab