File tree 1 file changed +5
-0
lines changed
templates/al2/provisioners
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 379
379
sudo chmod +x $ECR_CREDENTIAL_PROVIDER_BINARY
380
380
sudo mkdir -p /etc/eks/image-credential-provider
381
381
sudo mv $ECR_CREDENTIAL_PROVIDER_BINARY /etc/eks/image-credential-provider/
382
+ # ecr-credential-provider has support for public.ecr.aws in 1.27+
383
+ if vercmp " ${KUBERNETES_VERSION} " gteq " 1.27.0" ; then
384
+ ECR_CRED_PROVIDER_CONFIG_WITH_PUBLIC=$( cat $WORKING_DIR /ecr-credential-provider-config.json | jq ' .providers[0].matchImages += ["public.ecr.aws"]' )
385
+ echo " ${ECR_CRED_PROVIDER_CONFIG_WITH_PUBLIC} " > $WORKING_DIR /ecr-credential-provider-config.json
386
+ fi
382
387
sudo mv $WORKING_DIR /ecr-credential-provider-config.json /etc/eks/image-credential-provider/config.json
383
388
384
389
# ###############################################################################
You can’t perform that action at this time.
0 commit comments