blob: 7211676c7f03d988f44851471b554dde79228f36 [file] [log] [blame]
Giorgi Lekveishviliec6b3cc2023-12-01 16:30:04 +04001{{- if and .Values.deployment.enabled .Values.serviceAccount.create }}
2apiVersion: v1
3kind: ServiceAccount
4metadata:
5 name: {{ template "coredns.serviceAccountName" . }}
6 labels: {{- include "coredns.labels" . | nindent 4 }}
7 {{- if or .Values.serviceAccount.annotations .Values.customAnnotations }}
8 annotations:
9 {{- if .Values.customAnnotations }}
10 {{- toYaml .Values.customAnnotations | nindent 4 }}
11 {{- end }}
12 {{- if .Values.serviceAccount.annotations }}
13 {{- toYaml .Values.serviceAccount.annotations | nindent 4 }}
14 {{- end }}
15 {{- end }}
16{{- if .Values.image.pullSecrets }}
17imagePullSecrets:
18{{- range .Values.image.pullSecrets }}
19 - name: {{ . }}
20{{- end }}
21{{- end }}
22{{- end }}