From 6de2e64223ff9b58a04e47a46a1c43f64d8c6f4f Mon Sep 17 00:00:00 2001 From: i065450 Date: Mon, 23 Dec 2024 08:31:41 +0200 Subject: [PATCH] Add option for adding annotations --- sapbtp-operator-charts/templates/configmap.yml | 6 +++--- sapbtp-operator-charts/templates/secret.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sapbtp-operator-charts/templates/configmap.yml b/sapbtp-operator-charts/templates/configmap.yml index 51becae6..d7b3925a 100644 --- a/sapbtp-operator-charts/templates/configmap.yml +++ b/sapbtp-operator-charts/templates/configmap.yml @@ -5,10 +5,10 @@ metadata: namespace: {{.Release.Namespace}} labels: "services.cloud.sap.com/managed-by-sap-btp-operator": "true" - { { - with .Values.operator_configmap_annotations } } + {{- if .Values.operator_configmap_annotations }} annotations: - { { - toYaml . | nindent 4 } } - { { - end } } + {{- toYaml .Values.operator_configmap_annotations | nindent 4 }} + {{- end }} data: {{- if .Values.cluster.id }} CLUSTER_ID: {{ .Values.cluster.id }} diff --git a/sapbtp-operator-charts/templates/secret.yml b/sapbtp-operator-charts/templates/secret.yml index e7f03ff4..af15814c 100644 --- a/sapbtp-operator-charts/templates/secret.yml +++ b/sapbtp-operator-charts/templates/secret.yml @@ -6,10 +6,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: "services.cloud.sap.com/managed-by-sap-btp-operator": "true" - { { - with .Values.manager.secret.annotations } } + {{- if .Values.manager.secret.annotations }} annotations: - { { - toYaml . | nindent 4 } } - { { - end } } + {{- toYaml .Values.manager.secret.annotations | nindent 4 }} + {{- end }} type: Opaque data: {{- if .Values.manager.secret.b64encoded }}