Skip to content

Commit

Permalink
Add option for adding annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
I065450 committed Dec 23, 2024
1 parent 9ea6889 commit 6de2e64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sapbtp-operator-charts/templates/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions sapbtp-operator-charts/templates/secret.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 6de2e64

Please sign in to comment.