diff --git a/azd-hooks/postprovision.sh b/azd-hooks/postprovision.sh index 4c705e3..1745c39 100755 --- a/azd-hooks/postprovision.sh +++ b/azd-hooks/postprovision.sh @@ -8,11 +8,6 @@ export ACR_SERVER=$(az acr show -n $ACR_NAME -g ${RESOURCE_GROUP_NAME} --query ' export ACR_USER_NAME=$(az acr credential show -n $ACR_NAME -g ${RESOURCE_GROUP_NAME} --query 'username' -o tsv) export ACR_PASSWORD=$(az acr credential show -n $ACR_NAME -g ${RESOURCE_GROUP_NAME} --query 'passwords[0].value' -o tsv) -echo ACR_NAME=$ACR_NAME -echo ACR_SERVER=$ACR_SERVER -echo ACR_USER_NAME=$ACR_USER_NAME -echo ACR_PASSWORD=$ACR_PASSWORD - # enable Helm support azd config set alpha.aks.helm on @@ -22,15 +17,14 @@ HELM_REPO_NAME="cargotracker-liberty-aks" # Check if the repo exists before removing if helm repo list | grep -q "${HELM_REPO_NAME}"; then + echo "Removing Repo '${HELM_REPO_NAME}'" helm repo remove ${HELM_REPO_NAME} - echo "Repo '${HELM_REPO_NAME}' removed." else echo "Repo '${HELM_REPO_NAME}' not found in the list." fi helm repo add ${HELM_REPO_NAME} ${HELM_REPO_URL} - export AKS_NAME=$(az aks list -g ${RESOURCE_GROUP_NAME} --query \[0\].name -o tsv) az aks enable-addons \