| Giorgi Lekveishvili | ec6b3cc | 2023-12-01 16:30:04 +0400 | [diff] [blame^] | 1 | {{- if and .Values.deployment.enabled .Values.serviceAccount.create }} |
| 2 | apiVersion: v1 |
| 3 | kind: ServiceAccount |
| 4 | metadata: |
| 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 }} |
| 17 | imagePullSecrets: |
| 18 | {{- range .Values.image.pullSecrets }} |
| 19 | - name: {{ . }} |
| 20 | {{- end }} |
| 21 | {{- end }} |
| 22 | {{- end }} |