From f79eb10dfb55d154f6df31c8f4e7acaa23f44ded Mon Sep 17 00:00:00 2001 From: mrdntgrn <31103575+mrdntgrn@users.noreply.github.com> Date: Mon, 15 Nov 2021 21:31:38 +0400 Subject: [PATCH] DMVP-170 have option to set volume name if there is need (#10) --- charts/base/Chart.yaml | 4 ++-- charts/base/README.md | 2 +- charts/base/templates/deployment.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/base/Chart.yaml b/charts/base/Chart.yaml index b3cdd86..2d45c51 100644 --- a/charts/base/Chart.yaml +++ b/charts/base/Chart.yaml @@ -15,10 +15,10 @@ 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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.13 +version: 0.1.14 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.13" +appVersion: "0.1.14" diff --git a/charts/base/README.md b/charts/base/README.md index d5a9e1d..a134713 100644 --- a/charts/base/README.md +++ b/charts/base/README.md @@ -10,7 +10,7 @@ appVersion: "0.1.0" dependencies: - name: base - version: 0.1.11 + version: 0.1.14 repository: https://dasmeta.github.io/helm alias: my-app-base ``` diff --git a/charts/base/templates/deployment.yaml b/charts/base/templates/deployment.yaml index 4e39963..6064bc9 100644 --- a/charts/base/templates/deployment.yaml +++ b/charts/base/templates/deployment.yaml @@ -57,14 +57,14 @@ spec: {{- if .Values.deployment.volumes }} volumeMounts: {{- range $index, $element := .Values.deployment.volumes }} - - name: {{ $index }} + - name: {{ coalesce $element.name (add $index 1) }} mountPath: {{ $element.mountPath }} {{- end }} {{- end }} {{- if .Values.deployment.volumes }} volumes: {{- range $index, $element := .Values.deployment.volumes }} - - name: {{ $index }} + - name: {{ coalesce $element.name (add $index 1) }} persistentVolumeClaim: claimName: {{ $element.persistentVolumeClaim.claimName }} {{- end }}