From 0311eb5f447762a581194d649ea4d703da104fb8 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 10 Feb 2022 10:51:13 +0530 Subject: [PATCH] helm: remove namespace from storageclass yaml removes namespace from non-namespaced storageclass object. fixes: #2714 Replacement for #2715 as we didnt receive any update and PR is already closed. Co-authored-by: jhrcz-ls Signed-off-by: Madhu Rajanna --- charts/ceph-csi-cephfs/templates/storageclass.yaml | 1 - charts/ceph-csi-rbd/templates/storageclass.yaml | 1 - 2 files changed, 2 deletions(-) diff --git a/charts/ceph-csi-cephfs/templates/storageclass.yaml b/charts/ceph-csi-cephfs/templates/storageclass.yaml index 62709adc2..4041dec6b 100644 --- a/charts/ceph-csi-cephfs/templates/storageclass.yaml +++ b/charts/ceph-csi-cephfs/templates/storageclass.yaml @@ -3,7 +3,6 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: {{ .Values.storageClass.name }} - namespace: {{ .Release.Namespace }} {{- if .Values.storageClass.annotations }} annotations: {{ toYaml .Values.storageClass.annotations | indent 4 }} diff --git a/charts/ceph-csi-rbd/templates/storageclass.yaml b/charts/ceph-csi-rbd/templates/storageclass.yaml index f381ab3f0..fda713ab3 100644 --- a/charts/ceph-csi-rbd/templates/storageclass.yaml +++ b/charts/ceph-csi-rbd/templates/storageclass.yaml @@ -3,7 +3,6 @@ apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: {{ .Values.storageClass.name }} - namespace: {{ .Release.Namespace }} {{- if .Values.storageClass.annotations }} annotations: {{ toYaml .Values.storageClass.annotations | indent 4 }}