rancher-partner-charts/charts/kubecost/cost-analyzer/2.3.1/templates/prometheus-pushgateway-serv...

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 }}