{{- if .Values.global.aurva_proxy.enabled }} {{- if or .Values.aurva_proxy.enabled .Values.aurva_proxy.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: name: {{ .Release.Name}}-{{ template "aurva-proxy.proxyServiceAccountName" . }} namespace: {{ template "application.namespace" $ }} {{- if .Values.aurva_proxy.serviceAccount.annotations }} annotations: {{- range $key, $value := .Values.aurva_proxy.serviceAccount.annotations }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} labels: {{- include "application.labels" . | nindent 4 }} {{- range $key, $value := .Values.aurva_proxy.serviceAccount.labels }} {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} {{- end }}