github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-pushgateway/templates/serviceaccount.yaml (about) 1 {{- if .Values.serviceAccount.create }} 2 apiVersion: v1 3 kind: ServiceAccount 4 metadata: 5 {{- with .Values.serviceAccount.annotations }} 6 annotations: 7 {{- toYaml . | nindent 4 }} 8 {{- end }} 9 labels: 10 {{- include "prometheus-pushgateway.defaultLabels" . | nindent 4 }} 11 {{- with .Values.serviceAccountLabels }} 12 {{- toYaml . | nindent 4 }} 13 {{- end }} 14 name: {{ include "prometheus-pushgateway.serviceAccountName" . }} 15 namespace: {{ template "prometheus-pushgateway.namespace" . }} 16 {{- end }}