12 lines
425 B
YAML
12 lines
425 B
YAML
|
{{- if and .Values.pushgateway.enabled .Values.serviceAccounts.pushgateway.create -}}
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
labels:
|
||
|
{{- include "prometheus.pushgateway.labels" . | nindent 4 }}
|
||
|
name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
|
||
|
{{ include "prometheus.namespace" . | indent 2 }}
|
||
|
annotations:
|
||
|
{{ toYaml .Values.serviceAccounts.pushgateway.annotations | indent 4 }}
|
||
|
{{- end -}}
|