Browse Source

add annotations if specified in values file

Cansu Kavili 5 năm trước cách đây
mục cha
commit
60384be5ff
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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" . }}