From 45bbc115aebd44021edbfc500f35bb6806d20a8e Mon Sep 17 00:00:00 2001 From: Andree Klattenhoff <andree.klattenhoff@open-xchange.com> Date: Tue, 2 Apr 2024 15:11:45 +0200 Subject: [PATCH] Fix: Helm: Support to use {{ .Release.Name }} in existingConfigMap value --- helm/core-ui-middleware/Chart.yaml | 2 +- helm/core-ui-middleware/templates/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/core-ui-middleware/Chart.yaml b/helm/core-ui-middleware/Chart.yaml index 6d4b23f..6ccd4aa 100644 --- a/helm/core-ui-middleware/Chart.yaml +++ b/helm/core-ui-middleware/Chart.yaml @@ -15,7 +15,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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.0.7 +version: 3.0.8 # 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 diff --git a/helm/core-ui-middleware/templates/deployment.yaml b/helm/core-ui-middleware/templates/deployment.yaml index c85ee1a..fcff7d5 100644 --- a/helm/core-ui-middleware/templates/deployment.yaml +++ b/helm/core-ui-middleware/templates/deployment.yaml @@ -152,7 +152,7 @@ spec: volumes: - name: manifest-config configMap: - name: {{ .Values.existingConfigMap | default (include "ox-common.names.fullname" .) }} + name: "{{- tpl (.Values.existingConfigMap | default (include "ox-common.names.fullname" .)) . }}" {{- if and (eq (len .Values.redis.hosts) 1) (eq (index .Values.redis.hosts 0) "localhost:6379") }} - name: redis-data emptyDir: -- GitLab