mirror of https://git.rancher.io/charts
18 lines
612 B
YAML
18 lines
612 B
YAML
{{- if eq (include "csp-adapter.csp" . ) "aws" -}}
|
|
{{- if eq (include "csp-adapter.awsValuesSet" .) "true" -}}
|
|
{{- else -}}
|
|
{{- fail "If the aws provider is enabled, account number and role name must be provided" -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- fail "One cloud provider must be enabled" -}}
|
|
{{- end -}}
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: {{ .Chart.Name }}
|
|
namespace: cattle-csp-adapter-system
|
|
{{- if eq (include "csp-adapter.csp" . ) "aws" }}
|
|
annotations:
|
|
eks.amazonaws.com/role-arn: arn:aws:iam::{{ .Values.aws.accountNumber }}:role/{{ .Values.aws.roleName }}
|
|
{{- end }}
|