diff --git a/chart/keel/templates/service-account.yaml b/chart/keel/templates/service-account.yaml index 9d62dfb8..51344435 100644 --- a/chart/keel/templates/service-account.yaml +++ b/chart/keel/templates/service-account.yaml @@ -3,6 +3,10 @@ kind: ServiceAccount metadata: name: {{ template "keel.name" . }} namespace: {{ .Release.Namespace }} +{{- if (and .Values.ecr.enabled .Values.ecr.roleArn) }} + annotations: + eks.amazonaws.com/role-arn: {{ .Values.ecr.roleArn }} +{{- end }} labels: app: {{ template "keel.name" . }} chart: {{ template "keel.chart" . }} diff --git a/chart/keel/values.yaml b/chart/keel/values.yaml index f0c98a6e..00b485d9 100644 --- a/chart/keel/values.yaml +++ b/chart/keel/values.yaml @@ -40,6 +40,7 @@ notificationLevel: info # https://keel.sh/v1/guide/documentation.html#Polling-with-AWS-ECR ecr: enabled: false + roleArn: "" accessKeyId: "" secretAccessKey: "" region: ""