File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616# Install Azure CLI (if not already installed)
1717if ! command -v az & > /dev/null; then
18- curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
18+ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash > /dev/null 2>&1
1919fi
2020
2121# Install kubectl (if not already installed)
2727
2828# Install Helm (if not already installed)
2929if ! command -v helm & > /dev/null; then
30- curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
30+ curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash > /dev/null 2>&1
3131fi
3232
3333# Login to Azure
3434az login --service-principal \
3535 -u ${AZURE_CLIENT_ID} \
3636 -p ${AZURE_CLIENT_SECRET} \
37- --tenant ${AZURE_TENANT_ID}
37+ --tenant ${AZURE_TENANT_ID} > /dev/null 2>&1
3838
3939# Get AKS credentials
4040az aks get-credentials \
4141 --resource-group ${AZURE_RESOURCE_GROUP} \
4242 --name ${AZURE_CLUSTER_NAME} \
43- --overwrite-existing
43+ --overwrite-existing > /dev/null 2>&1
4444
4545# Deploy using Helm
4646helm upgrade ${RELEASE_NAME} ./helm-chart \
@@ -53,4 +53,4 @@ helm upgrade ${RELEASE_NAME} ./helm-chart \
5353 --history-max 3 \
5454 --wait \
5555 --timeout 5m \
56- --atomic
56+ --atomic > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments