Parcourir la source

feat: serviceAccount annotations

Pavels Veretennikovs il y a 4 ans
Parent
commit
5a2a904269
2 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 8 0
      flink/templates/serviceaccounts.yaml
  2. 2 0
      flink/values.yaml

+ 8 - 0
flink/templates/serviceaccounts.yaml

@@ -3,6 +3,10 @@ apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: {{ include "jobmanager.serviceAccount" . }}
+{{- if .Values.jobmanager.serviceAccount.annotations }}
+  annotations:
+{{ tpl (toYaml .Values.jobmanager.serviceAccount.annotations) . | indent 4 }}
+{{- end }}
   labels:
 {{ include "flink.labels" . | indent 4 }}
 {{- end }}
@@ -13,6 +17,10 @@ apiVersion: v1
 kind: ServiceAccount
 metadata:
   name: {{ include "taskmanager.serviceAccount" . }}
+{{- if .Values.taskmanager.serviceAccount.annotations }}
+  annotations:
+{{ tpl (toYaml .Values.taskmanager.serviceAccount.annotations) . | indent 4 }}
+{{- end }}
   labels:
 {{ include "flink.labels" . | indent 4 }}
 {{- end }}

+ 2 - 0
flink/values.yaml

@@ -205,6 +205,7 @@ jobmanager:
     # The name of the ServiceAccount to use.
     # If not set and create is true, a name is generated using the fullname template
     name:
+    annotations: {}
   #livenessProbe will conduct checks for rpc port as tcpSocket probe
   livenessProbe:
     initialDelaySeconds: 10
@@ -271,6 +272,7 @@ taskmanager:
     # The name of the ServiceAccount to use.
     # If not set and create is true, a name is generated using the fullname template
     name:
+    annotations: {}
   #livenessProbe will conduct checks for rpc port as tcpSocket probe
   livenessProbe:
     initialDelaySeconds: 30