From abdadef8bc901bc1d7ff6dbec79ceb5543e55b71 Mon Sep 17 00:00:00 2001 From: wilmardo Date: Wed, 25 Sep 2019 15:15:14 +0200 Subject: [PATCH] fix: add POD_NAMESPACE to RBD provisioner deployments Signed-off-by: wilmardo --- charts/ceph-csi-rbd/templates/provisioner-deployment.yaml | 4 ++++ charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml | 4 ++++ deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml | 4 ++++ deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml index 17fe401e3..5a83e46e3 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-deployment.yaml @@ -109,6 +109,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: CSI_ENDPOINT value: "unix:///csi/{{ .Values.provisionerSocketFile }}" securityContext: diff --git a/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml b/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml index 429d12e0b..5fbbbfea9 100644 --- a/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml +++ b/charts/ceph-csi-rbd/templates/provisioner-statefulset.yaml @@ -106,6 +106,10 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace - name: CSI_ENDPOINT value: "unix:///csi/{{ .Values.provisionerSocketFile }}" securityContext: diff --git a/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml index 5fb9ce077..33a6b8821 100644 --- a/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/v1.13/csi-rbdplugin-provisioner.yaml @@ -73,6 +73,10 @@ spec: env: - name: ADDRESS value: /csi/csi-provisioner.sock + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace imagePullPolicy: "IfNotPresent" volumeMounts: - name: socket-dir diff --git a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml index 8d2793678..a8157f471 100644 --- a/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml +++ b/deploy/rbd/kubernetes/v1.14+/csi-rbdplugin-provisioner.yaml @@ -76,6 +76,10 @@ spec: env: - name: ADDRESS value: /csi/csi-provisioner.sock + - name: POD_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace imagePullPolicy: "IfNotPresent" volumeMounts: - name: socket-dir