From 0d2139f78c0b0db1060af763ee31b29c22e76929 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 4 Sep 2024 18:09:07 +0200 Subject: [PATCH] fix(setup): Fix configuration for ecr credential helper --- helm/cluster_setup/Chart.yaml | 4 ++-- helm/cluster_setup/templates/ecr-token-helper.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/cluster_setup/Chart.yaml b/helm/cluster_setup/Chart.yaml index e2f95d9..d7f0abf 100644 --- a/helm/cluster_setup/Chart.yaml +++ b/helm/cluster_setup/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: cluster_setup -version: 0.6.1 +version: 0.6.2 type: application description: "Initial cluster setup" maintainers: @@ -9,7 +9,7 @@ maintainers: annotations: artifacthub.io/changes: | - kind: fixed - description: Fixed ecr configuration + description: Fixed missing namespace values artifacthub.io/signKey: | fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc diff --git a/helm/cluster_setup/templates/ecr-token-helper.yaml b/helm/cluster_setup/templates/ecr-token-helper.yaml index 6b66c91..6e76447 100644 --- a/helm/cluster_setup/templates/ecr-token-helper.yaml +++ b/helm/cluster_setup/templates/ecr-token-helper.yaml @@ -84,8 +84,8 @@ spec: - -c - |- TOKEN=`aws ecr get-login-password --region ${REGION} | cut -d' ' -f6` - kubectl delete secret -n --ignore-not-found $SECRET_NAME - kubectl create secret -n 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 \