rancher-partner-charts/charts/kubecost/cost-analyzer/2.3.4/templates/prometheus-server-serviceac...

18 lines
525 B
YAML

{{ if .Values.global.prometheus.enabled }}
{{- if .Values.prometheus.server.enabled -}}
{{- if .Values.prometheus.serviceAccounts.server.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
{{- include "prometheus.server.labels" . | nindent 4 }}
name: {{ template "prometheus.serviceAccountName.server" . }}
namespace: {{ .Release.Namespace }}
{{- with .Values.prometheus.serviceAccounts.server.annotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{ end }}