Skip to content

Commit

Permalink
[CU-86b0mtx6y] Update custom labels/annotations functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jstromsky committed Aug 8, 2024
1 parent e1bf62f commit 649b623
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ metadata:
secretsHash: {{ .Values.app.secretHash }}
product: "data-connect"
{{- range $key, $value := .Values.global.deploymentLabels }}
{{ $key }}: {{ tpl ($value | toString) $ | quote }}
{{ tpl ($key | toString) $ }}: {{ tpl ($value | toString) $ | quote }}
{{- end }}
annotations:
meta.helm.sh/release-name: data-connect-trino
Expand All @@ -54,7 +54,7 @@ spec:
prometheus.io/port: "8080"
prometheus.io/path: "/actuator/prometheus"
{{- range $key, $value := .Values.global.templateAnnotations }}
{{ $key }}: {{ tpl ($value | toString) $ | quote }}
{{ tpl ($key | toString) $ }}: {{ tpl ($value | toString) $ | quote }}
{{- end }}
labels:
app: data-connect-trino
Expand All @@ -63,7 +63,7 @@ spec:
secretsHash: {{ .Values.app.secretHash }}
product: "data-connect_spec"
{{- range $key, $value := .Values.global.templateLabels }}
{{ $key }}: {{ tpl ($value | toString) $ | quote }}
{{ tpl ($key | toString) $ }}: {{ tpl ($value | toString) $ | quote }}
{{- end }}
spec:
serviceAccountName: dataconnecttrino
Expand Down

1 comment on commit 649b623

@angelo-DNAStack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.