| Giorgi Lekveishvili | ec6b3cc | 2023-12-01 16:30:04 +0400 | [diff] [blame] | 1 | {{- if and .Values.autoscaler.enabled .Values.rbac.create }} |
| 2 | --- |
| 3 | apiVersion: v1 |
| 4 | kind: ServiceAccount |
| 5 | metadata: |
| 6 | name: {{ template "coredns.fullname" . }}-autoscaler |
| 7 | namespace: {{ .Release.Namespace }} |
| 8 | labels: {{- include "coredns.labels.autoscaler" . | nindent 4 }} |
| 9 | {{- if .Values.customLabels }} |
| 10 | {{ toYaml .Values.customLabels | indent 4 }} |
| 11 | {{- end }} |
| 12 | {{- with .Values.customAnnotations }} |
| 13 | annotations: |
| 14 | {{- toYaml . | nindent 4 }} |
| 15 | {{- end }} |
| 16 | {{- if .Values.autoscaler.image.pullSecrets }} |
| 17 | imagePullSecrets: |
| 18 | {{- range .Values.autoscaler.image.pullSecrets }} |
| 19 | - name: {{ . }} |
| 20 | {{- end }} |
| 21 | {{- end }} |
| 22 | {{- end }} |