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

12 lines
401 B
YAML
Raw Normal View History

2021-06-24 01:55:05 +00:00
{{ if .Values.global.prometheus.enabled }}
{{- if and .Values.prometheus.pushgateway.enabled .Values.prometheus.serviceAccounts.pushgateway.create -}}
2021-06-24 01:55:05 +00:00
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
{{- include "prometheus.pushgateway.labels" . | nindent 4 }}
name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
namespace: {{ .Release.Namespace }}
2021-06-24 01:55:05 +00:00
{{- end -}}
{{ end }}