From f2d182d3d26dc0f8f57e7e91c67c5b0b9871de98 Mon Sep 17 00:00:00 2001 From: Santiago Botto Date: Tue, 15 Aug 2023 14:34:44 -0300 Subject: [PATCH] Test: change how configMap and secrets are set --- charts/common/Chart.yaml | 4 ++-- charts/common/templates/deployment.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 58d80cd..d5fe650 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,11 +15,11 @@ 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.0.15-beta5 +version: 0.0.15-beta6 # 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.0.15-beta5" +appVersion: "0.0.15-beta6" icon: https://cncf-branding.netlify.app/img/projects/helm/horizontal/color/helm-horizontal-color.png diff --git a/charts/common/templates/deployment.yaml b/charts/common/templates/deployment.yaml index ecafce1..712e610 100644 --- a/charts/common/templates/deployment.yaml +++ b/charts/common/templates/deployment.yaml @@ -45,8 +45,10 @@ spec: {{- range $volume := .Values.deployment.volumes }} - name: {{ $fullName }}-{{ $volume.name }}-volume {{- if $volume.configMap }} + configMap: {{- toYaml $volume.configMap | nindent 10 }} {{- else if $volume.secret }} + secret: {{- toYaml $volume.secret | nindent 10 }} {{- else }} persistentVolumeClaim: