mirror of https://git.rancher.io/charts
19 lines
675 B
YAML
19 lines
675 B
YAML
{{- if .Values.serviceAccount.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: {{ template "kube-state-metrics.name" . }}
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
name: {{ template "kube-state-metrics.fullname" . }}
|
|
namespace: {{ template "kube-state-metrics.namespace" . }}
|
|
{{- if .Values.serviceAccount.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
|
|
{{- end }}
|
|
imagePullSecrets:
|
|
{{ toYaml .Values.serviceAccount.imagePullSecrets | indent 2 }}
|
|
{{- end -}}
|