12 lines
401 B
YAML
12 lines
401 B
YAML
{{ if .Values.global.prometheus.enabled }}
|
|
{{- if and .Values.prometheus.pushgateway.enabled .Values.prometheus.serviceAccounts.pushgateway.create -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
labels:
|
|
{{- include "prometheus.pushgateway.labels" . | nindent 4 }}
|
|
name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end -}}
|
|
{{ end }}
|