mirror of https://git.rancher.io/charts
18 lines
553 B
YAML
18 lines
553 B
YAML
{{- if .Values.awsbilling.enabled }}
|
|
{{- if not .Values.openshift}}
|
|
{{- if ne .Values.awsbilling.serviceAccount "default"}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ .Values.awsbilling.serviceAccount }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
chart: {{ template "neuvector.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
annotations:
|
|
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.awsbilling.accountNumber }}:role/{{ .Values.awsbilling.roleName }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|