28 lines
942 B
YAML
28 lines
942 B
YAML
{{- if and .Values.serviceAccount.create ( not .Values.metering.awsMarketplace ) }}
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
{{- if .Values.secrets.awsIamRole }}
|
|
annotations:
|
|
eks.amazonaws.com/role-arn: {{ .Values.secrets.awsIamRole }}
|
|
{{- end }}
|
|
labels:
|
|
{{ include "helm.labels" . | indent 4 }}
|
|
name: {{ template "serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|
|
{{- if and (not ( eq (include "meteringServiceAccountName" .) (include "serviceAccountName" .))) ( not .Values.metering.awsManagedLicense ) .Values.metering.serviceAccount.create }}
|
|
---
|
|
kind: ServiceAccount
|
|
apiVersion: v1
|
|
metadata:
|
|
{{- if .Values.metering.awsMarketPlaceIamRole }}
|
|
annotations:
|
|
eks.amazonaws.com/role-arn: {{ .Values.metering.awsMarketPlaceIamRole }}
|
|
{{- end }}
|
|
labels:
|
|
{{ include "helm.labels" . | indent 4 }}
|
|
name: {{ template "meteringServiceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|