Browse Source

add annotations if specified in values file

Cansu Kavili 5 years ago
parent
commit
60384be5ff
1 changed files with 4 additions and 0 deletions
  1. 4 0
      helm/wekan/templates/serviceaccount.yaml

+ 4 - 0
helm/wekan/templates/serviceaccount.yaml

@@ -2,6 +2,10 @@
 apiVersion: v1
 kind: ServiceAccount
 metadata:
+{{- if .Values.serviceAccounts.annotations }}
+  annotations:
+{{ .Values.serviceAccounts.annotations | indent 4}}
+{{- end }}
   labels:
     app: {{ template "wekan.name" . }}
     chart: {{ template "wekan.chart" . }}