stack/kustomizations/cilium/charts/cilium/templates/clustermesh-apiserver/tls-cronjob/serviceaccount.yaml

12 lines
538 B
YAML

{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "cronJob") .Values.serviceAccounts.clustermeshcertgen.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccounts.clustermeshcertgen.name | quote }}
namespace: {{ .Release.Namespace }}
{{- with .Values.serviceAccounts.clustermeshcertgen.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}