diff --git a/charts/default-resources/Chart.yaml b/charts/default-resources/Chart.yaml index f6d29bd..1943930 100644 --- a/charts/default-resources/Chart.yaml +++ b/charts/default-resources/Chart.yaml @@ -19,7 +19,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.1.0 +version: 1.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/default-resources/templates/limitrange.yaml b/charts/default-resources/templates/limitrange.yaml index b9d1ddc..87a66ab 100644 --- a/charts/default-resources/templates/limitrange.yaml +++ b/charts/default-resources/templates/limitrange.yaml @@ -6,8 +6,8 @@ kind: LimitRange metadata: name: {{ .name }} namespace: {{ .namespace }} - labels: {{- if .labels }} + labels: {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} diff --git a/charts/default-resources/templates/namespace.yaml b/charts/default-resources/templates/namespace.yaml index cfcd893..651554e 100644 --- a/charts/default-resources/templates/namespace.yaml +++ b/charts/default-resources/templates/namespace.yaml @@ -5,8 +5,8 @@ apiVersion: v1 kind: Namespace metadata: name: {{ .name }} - labels: {{- if .labels }} + labels: {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} diff --git a/charts/default-resources/templates/storageclass.yaml b/charts/default-resources/templates/storageclass.yaml index b0e7352..ea809e4 100644 --- a/charts/default-resources/templates/storageclass.yaml +++ b/charts/default-resources/templates/storageclass.yaml @@ -18,10 +18,12 @@ metadata: {{- end }} {{- end }} provisioner: {{ .provisioner }} +{{- if .parameters }} parameters: {{- with .parameters }} {{- toYaml . | nindent 2 }} {{- end }} +{{- end }} allowVolumeExpansion: {{ .allowVolumeExpansion }} reclaimPolicy: {{ .reclaimPolicy }} {{- if .mountOptions }} diff --git a/charts/default-resources/templates/volumesnapshotclass.yaml b/charts/default-resources/templates/volumesnapshotclass.yaml index e9ba73b..e5790af 100644 --- a/charts/default-resources/templates/volumesnapshotclass.yaml +++ b/charts/default-resources/templates/volumesnapshotclass.yaml @@ -19,10 +19,12 @@ metadata: {{- end }} driver: {{ .driver }} deletionPolicy: {{ .deletionPolicy }} +{{- if .parameters }} parameters: {{- with .parameters }} {{- toYaml . | nindent 2 }} {{- end }} +{{- end }} {{ end }} {{ end }} \ No newline at end of file