2022-08-12 04:20:19 -04:00
|
|
|
{{- if and .Values.hubble.enabled .Values.hubble.tls.enabled .Values.hubble.tls.auto.enabled (eq .Values.hubble.tls.auto.method "cronJob") .Values.serviceAccounts.hubblecertgen.create }}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: {{ .Values.serviceAccounts.hubblecertgen.name | quote }}
|
|
|
|
namespace: {{ .Release.Namespace }}
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- if or .Values.serviceAccounts.hubblecertgen.annotations .Values.hubble.annotations }}
|
2022-08-12 04:20:19 -04:00
|
|
|
annotations:
|
2023-10-16 13:14:53 -04:00
|
|
|
{{- with .Values.hubble.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.serviceAccounts.hubblecertgen.annotations }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2022-08-12 04:20:19 -04:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|