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