From 3b70b361746e9b21f209b2a8d6bfe674ef7f4503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kuty=C5=82owski?= <129306490+Radoslaw-Kutylowski@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:55:26 +0200 Subject: [PATCH 1/2] Support port number in registry_url --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 49059f3..0f7a652 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,7 +33,7 @@ fi if [ "$USE_OCI_REGISTRY" == "TRUE" ] || [ "$USE_OCI_REGISTRY" == "true" ]; then export HELM_EXPERIMENTAL_OCI=1 echo "OCI SPECIFIED, USING HELM OCI FEATURES" - REGISTRY=$(echo "${REGISTRY_URL}" | awk -F[/:] '{print $4}') # Get registry host from url + REGISTRY=$(echo "${REGISTRY_URL}" | awk -F[/] '{print $3}') # Get registry host from url echo "${REGISTRY_ACCESS_TOKEN}" | helm registry login -u ${REGISTRY_USERNAME} --password-stdin ${REGISTRY} # Authenticate registry echo "Packaging chart '$CHART_FOLDER'" PKG_RESPONSE=$(helm package $CHART_FOLDER $UPDATE_DEPENDENCIES) # package chart From 15dd050138657be4c323e5f57190fc36181461ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kuty=C5=82owski?= <129306490+Radoslaw-Kutylowski@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:57:35 +0200 Subject: [PATCH 2/2] reflect port support change in code comment --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0f7a652..28c194d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,7 +33,7 @@ fi if [ "$USE_OCI_REGISTRY" == "TRUE" ] || [ "$USE_OCI_REGISTRY" == "true" ]; then export HELM_EXPERIMENTAL_OCI=1 echo "OCI SPECIFIED, USING HELM OCI FEATURES" - REGISTRY=$(echo "${REGISTRY_URL}" | awk -F[/] '{print $3}') # Get registry host from url + REGISTRY=$(echo "${REGISTRY_URL}" | awk -F[/] '{print $3}') # Get registry host and port from url echo "${REGISTRY_ACCESS_TOKEN}" | helm registry login -u ${REGISTRY_USERNAME} --password-stdin ${REGISTRY} # Authenticate registry echo "Packaging chart '$CHART_FOLDER'" PKG_RESPONSE=$(helm package $CHART_FOLDER $UPDATE_DEPENDENCIES) # package chart