rancher-charts/packages/neuvector/generated-changes/exclude/templates/csp-serviceaccount.yaml

25 lines
855 B
YAML
Raw Normal View History

2023-10-19 01:30:00 +00:00
{{- if or .Values.global.aws.enabled .Values.global.azure.enabled }}
2023-07-20 23:54:38 +00:00
{{- if not .Values.openshift}}
2023-10-19 01:30:00 +00:00
{{- if and (ne .Values.global.aws.serviceAccount "default") (ne .Values.global.azure.serviceAccount "default") }}
2023-07-20 23:54:38 +00:00
apiVersion: v1
kind: ServiceAccount
metadata:
2023-10-19 01:30:00 +00:00
{{- if .Values.global.aws.enabled }}
name: {{ .Values.global.aws.serviceAccount }}
{{- end }}
{{- if .Values.global.azure.enabled }}
name: {{ .Values.global.azure.serviceAccount }}
{{- end }}
2023-07-20 23:54:38 +00:00
namespace: {{ .Release.Namespace }}
labels:
chart: {{ template "neuvector.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
2023-10-19 01:30:00 +00:00
{{- if .Values.global.aws.enabled }}
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.global.aws.accountNumber }}:role/{{ .Values.global.aws.roleName }}
{{- end }}
2023-07-20 23:54:38 +00:00
{{- end }}
{{- end }}
{{- end }}