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 <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2022-02-10 10:51:13 +05:30 committed by mergify[bot]
parent ee8fb3f05f
commit 0311eb5f44
2 changed files with 0 additions and 2 deletions

View File

@ -3,7 +3,6 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass kind: StorageClass
metadata: metadata:
name: {{ .Values.storageClass.name }} name: {{ .Values.storageClass.name }}
namespace: {{ .Release.Namespace }}
{{- if .Values.storageClass.annotations }} {{- if .Values.storageClass.annotations }}
annotations: annotations:
{{ toYaml .Values.storageClass.annotations | indent 4 }} {{ toYaml .Values.storageClass.annotations | indent 4 }}

View File

@ -3,7 +3,6 @@ apiVersion: storage.k8s.io/v1
kind: StorageClass kind: StorageClass
metadata: metadata:
name: {{ .Values.storageClass.name }} name: {{ .Values.storageClass.name }}
namespace: {{ .Release.Namespace }}
{{- if .Values.storageClass.annotations }} {{- if .Values.storageClass.annotations }}
annotations: annotations:
{{ toYaml .Values.storageClass.annotations | indent 4 }} {{ toYaml .Values.storageClass.annotations | indent 4 }}