{{- if and .Values.envoy.enabled (not .Values.preflight.enabled) .Values.serviceAccounts.envoy.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Values.serviceAccounts.envoy.name | quote }} namespace: {{ .Release.Namespace }} {{- if or .Values.serviceAccounts.envoy.annotations .Values.envoy.annotations }} annotations: {{- with .Values.envoy.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.serviceAccounts.envoy.annotations }} {{- toYaml . | nindent 4 }} {{- end }} {{- end }} {{- end }}