{{- if and .Values.certController.create .Values.certController.serviceAccount.create (not .Values.webhook.certManager.enabled) -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "external-secrets-cert-controller.serviceAccountName" . }} namespace: {{ template "external-secrets.namespace" . }} labels: {{- include "external-secrets-cert-controller.labels" . | nindent 4 }} {{- with .Values.certController.serviceAccount.extraLabels }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.certController.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} {{- end }}