From a05b06d43586693f28e8f6eef74d59f84341e20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 30 Sep 2024 13:24:38 +0200 Subject: [PATCH] Fix metadata customization --- templates/cm_metadata.yaml | 6 +++--- values.yaml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/cm_metadata.yaml b/templates/cm_metadata.yaml index 4f87ea3..776e8f6 100644 --- a/templates/cm_metadata.yaml +++ b/templates/cm_metadata.yaml @@ -1,9 +1,9 @@ -{{- if .Values.metadata }} +{{- if .Values.metadata.enabled }} apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "common.fullname" ( dict "root" $ "service" $.Values "serviceName" "metadata" ) }} - {{- include "common.metadata" ( dict "root" $ "service" $.Values ) | nindent 2 }} + name: {{ include "common.fullname" ( dict "root" $ "service" $.Values.metadata "serviceName" "metadata" ) }} + {{- include "common.metadata" ( dict "root" $ "service" $.Values.metadata ) | nindent 2 }} data: CHART_NAME: {{ .Chart.Name }} RELEASE_NAME: {{ .Release.Name }} diff --git a/values.yaml b/values.yaml index a217f9f..6c93050 100644 --- a/values.yaml +++ b/values.yaml @@ -24,6 +24,9 @@ securityContext: # drop: # - ALL +metadata: + enabled: true + ingress: enabled: false