Skip to content

Commit

Permalink
Refactor if-clauses to check Values.podAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
vostres committed Apr 30, 2024
1 parent 02dc16f commit 5d560de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/streams-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
release: {{ .Release.Name }}
template:
metadata:
{{- if or (or (or .Values.awsRole .Values.prometheus.jmx.enabled) .Values.autoscaling.consumerGroup) .Values.annotations }}
{{- if or (or (or .Values.awsRole .Values.prometheus.jmx.enabled) .Values.autoscaling.consumerGroup) .Values.podAnnotations }}
annotations:
{{- if .Values.awsRole }}
iam.amazonaws.com/role: {{ .Values.awsRole }}
Expand All @@ -51,7 +51,7 @@ spec:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key | quote }}: {{ $value | quote }}
{{- end }}
{{- if and .Values.autoscaling.consumerGroup (not .Values.annotations.consumerGroup) }}
{{- if and .Values.autoscaling.consumerGroup (not .Values.podAnnotations.consumerGroup) }}
consumerGroup: {{ .Values.autoscaling.consumerGroup | quote }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 5d560de

Please sign in to comment.