Skip to content

Commit

Permalink
Remove sensitive echo statements and redundant repo removal log.
Browse files Browse the repository at this point in the history
  • Loading branch information
backwind1233 committed Sep 25, 2024
1 parent ea0ce60 commit 080bc32
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions azd-hooks/postprovision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 080bc32

Please sign in to comment.