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