blob: 8c417604a1003cd840e6176796a9e52f3bd4dd8c [file] [log] [blame]
Giorgi Lekveishvilid1234c12023-06-19 10:37:06 +04001{{- if .Values.startupapicheck.enabled }}
2{{- if .Values.startupapicheck.serviceAccount.create }}
3apiVersion: v1
4kind: ServiceAccount
5automountServiceAccountToken: {{ .Values.startupapicheck.serviceAccount.automountServiceAccountToken }}
6metadata:
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 }}
23imagePullSecrets:
24 {{- toYaml . | nindent 2 }}
25{{- end }}
26{{- end }}
27{{- end }}