Skip to content

Commit

Permalink
Merge pull request #3 from Babbleshack/fix_serviceAccount_annotations
Browse files Browse the repository at this point in the history
Fix: annotations for serviceAccount are rendered as labels
  • Loading branch information
arkbriar authored Oct 18, 2023
2 parents eef5e6c + a8ea106 commit 6ea0f70
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions charts/risingwave/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ metadata:
name: {{ include "risingwave.serviceAccountName" . }}
labels:
{{- include "risingwave.labels" . | nindent 4 }}
{{- $annotations := (include "risingwave.annotations" . ) | trim }}
{{- if $annotations }}
{{- if or (include "risingwave.annotations" .) .Values.serviceAccount.annotations }}
annotations:
{{- $annotations := (include "risingwave.annotations" . ) | trim }}
{{- if $annotations }}
{{ nindent 4 $annotations }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 6ea0f70

Please sign in to comment.