From 7b28d9df41590114a50c7fa3208ee5417262dd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Mart=C3=ADn=20Garc=C3=ADa?= <49920382+amartingarcia@users.noreply.github.com> Date: Fri, 12 May 2023 15:25:08 +0200 Subject: [PATCH] feat(default-resource): fixed trailing spaces (#12) --- charts/default-resources/Chart.yaml | 2 +- charts/default-resources/templates/limitrange.yaml | 2 +- charts/default-resources/templates/namespace.yaml | 2 +- charts/default-resources/templates/storageclass.yaml | 2 ++ charts/default-resources/templates/volumesnapshotclass.yaml | 2 ++ 5 files changed, 7 insertions(+), 3 deletions(-) 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