Skip to content

Commit

Permalink
add checking if state is failed for arc
Browse files Browse the repository at this point in the history
  • Loading branch information
gracewehner committed Jan 19, 2024
1 parent 513ac81 commit 72ed4a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pipelines/azure-pipeline-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ jobs:
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
state=$(az k8s-extension show --name azuremonitor-metrics --cluster-name ci-dev-arc-wcus --resource-group ci-dev-arc-wcus --cluster-type connectedClusters | jq -r '.provisioningState')
if [ $state = "Succeeded" ]
# We want to wait in case the status is 'Creating' or 'Updating' because of another PR merged shortly before the current one.
if [ "$state" = "Succeeded" ] || [ "$state" = "Failed" ]
then
echo "Cluster is ready to install extension"
exit 0
Expand Down

0 comments on commit 72ed4a5

Please sign in to comment.