blob: 8b0e9c7eb2e2d219d78bdccc50aba92bc4bbc177 [file] [log] [blame]
Giorgi Lekveishviliec6b3cc2023-12-01 16:30:04 +04001{{- if and .Values.autoscaler.enabled .Values.rbac.create }}
2---
3apiVersion: v1
4kind: ServiceAccount
5metadata:
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 }}
17imagePullSecrets:
18{{- range .Values.autoscaler.image.pullSecrets }}
19 - name: {{ . }}
20{{- end }}
21{{- end }}
22{{- end }}