18 lines
467 B
YAML
18 lines
467 B
YAML
|
{{- if .Values.serviceAccount.create -}}
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: {{ template "metrics-server.serviceAccountName" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "metrics-server.labels" . | nindent 4 }}
|
||
|
{{- with .Values.serviceAccount.annotations }}
|
||
|
annotations:
|
||
|
{{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.serviceAccount.secrets }}
|
||
|
secrets:
|
||
|
{{- toYaml . | nindent 2 }}
|
||
|
{{- end }}
|
||
|
{{- end -}}
|