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