mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
fix(setup): Fix configuration for ecr credential helper
This commit is contained in:
@@ -84,8 +84,8 @@ spec:
|
||||
- -c
|
||||
- |-
|
||||
TOKEN=`aws ecr get-login-password --region ${REGION} | cut -d' ' -f6`
|
||||
kubectl delete secret -n <namespace> --ignore-not-found $SECRET_NAME
|
||||
kubectl create secret -n <namespace> docker-registry $SECRET_NAME \
|
||||
kubectl delete secret -n {{ .name }} --ignore-not-found $SECRET_NAME
|
||||
kubectl create secret -n {{ .name }} docker-registry $SECRET_NAME \
|
||||
--docker-server=$ECR_REPOSITORY \
|
||||
--docker-username=AWS \
|
||||
--docker-password=$TOKEN \
|
||||
|
||||
Reference in New Issue
Block a user