github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/cert-manager/templates/serviceaccount.yaml (about) 1 {{- if .Values.serviceAccount.create }} 2 apiVersion: v1 3 kind: ServiceAccount 4 {{- with .Values.global.imagePullSecrets }} 5 imagePullSecrets: 6 {{- toYaml . | nindent 2 }} 7 {{- end }} 8 automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} 9 metadata: 10 name: {{ template "cert-manager.serviceAccountName" . }} 11 namespace: {{ include "cert-manager.namespace" . }} 12 {{- with .Values.serviceAccount.annotations }} 13 annotations: 14 {{- toYaml . | nindent 4 }} 15 {{- end }} 16 labels: 17 app: {{ include "cert-manager.name" . }} 18 app.kubernetes.io/name: {{ include "cert-manager.name" . }} 19 app.kubernetes.io/instance: {{ .Release.Name }} 20 app.kubernetes.io/component: "controller" 21 {{- include "labels" . | nindent 4 }} 22 {{- with .Values.serviceAccount.labels }} 23 {{ toYaml . | nindent 4 }} 24 {{- end }} 25 {{- end }}