constellation/internal/helm/charts/cilium/templates/hubble/tls-cronjob/serviceaccount.yaml

17 lines
674 B
YAML
Raw Normal View History

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 }}
{{- if or .Values.serviceAccounts.hubblecertgen.annotations .Values.hubble.annotations }}
2022-08-12 04:20:19 -04:00
annotations:
{{- 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 }}