coredns-helm/charts/coredns/templates/serviceaccount-autoscaler.yaml
Manuel Rüger 70519f776a Rename stable to charts folder, link README
This is the common approach, stable doesnt make sense.
Also since coredns is the only chart in this repo, link the README
instead.

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2021-08-16 08:50:44 +02:00

28 lines
913 B
YAML

{{- if and .Values.autoscaler.enabled .Values.rbac.create }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "coredns.fullname" . }}-autoscaler
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- if .Values.isClusterService }}
k8s-app: {{ .Chart.Name }}-autoscaler
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "CoreDNS"
{{- end }}
app.kubernetes.io/name: {{ template "coredns.name" . }}-autoscaler
{{- if .Values.customLabels }}
{{ toYaml .Values.customLabels | indent 4 }}
{{- end }}
{{- if .Values.autoscaler.image.pullSecrets }}
imagePullSecrets:
{{- range .Values.autoscaler.image.pullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
{{- end }}