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