builds/infra-destroy-features-mesh-gateways.yaml [42:111]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  dir: "infra"
  entrypoint: bash
  args:
    - -c
    - |
      source vars.sh
      gsutil cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
      chmod +x nomos
      touch konfig && export KUBECONFIG=konfig
      while [[ $(gcloud container clusters list --project ${_PROJECT_ID} --filter "STATUS=RUNNING AND resourceLabels.env:prod" --format="value(name)"| wc -l | awk '{print $1}') != "6" ]]; do
        echo "Waiting for all the clusters to be RUNNING."
        sleep 5
      done
      gcloud container clusters get-credentials $${GKE_PROD1_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD2_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD3_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD4_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD5_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD6_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_CONFIG_NAME} --zone $${GKE_CONFIG_REGION} --project ${_PROJECT_ID}

      export PROD1_NOMOS_STATUS=0
      until [[ $$PROD1_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD1_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD1_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD1_NOMOS_STATUS is $$PROD1_NOMOS_STATUS"
        sleep 5
      done
      export PROD2_NOMOS_STATUS=0
      until [[ $$PROD2_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD2_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD2_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD2_NOMOS_STATUS is $$PROD2_NOMOS_STATUS"
        sleep 5
      done
      export PROD3_NOMOS_STATUS=0
      until [[ $$PROD3_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD3_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD3_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD3_NOMOS_STATUS is $$PROD3_NOMOS_STATUS"
        sleep 5
      done
      export PROD4_NOMOS_STATUS=0
      until [[ $$PROD4_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD4_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD4_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD4_NOMOS_STATUS is $$PROD4_NOMOS_STATUS"
        sleep 5
      done
      export PROD5_NOMOS_STATUS=0
      until [[ $$PROD5_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD5_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD5_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD5_NOMOS_STATUS is $$PROD5_NOMOS_STATUS"
        sleep 5
      done
      export PROD6_NOMOS_STATUS=0
      until [[ $$PROD6_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD6_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD6_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD6_NOMOS_STATUS is $$PROD6_NOMOS_STATUS"
        sleep 5
      done
      export CONFIG_NOMOS_STATUS=0
      until [[ $$CONFIG_NOMOS_STATUS == "SYNCED" ]]
      do
        export CONFIG_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_CONFIG_REGION}_$${GKE_CONFIG_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "CONFIG_NOMOS_STATUS is $$CONFIG_NOMOS_STATUS"
        sleep 5
      done
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



builds/infra-features-gke-mesh-gateways-prod.yaml [26:95]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  dir: "infra"
  entrypoint: bash
  args:
    - -c
    - |
      source vars.sh
      gsutil cp gs://config-management-release/released/latest/linux_amd64/nomos nomos
      chmod +x nomos
      touch konfig && export KUBECONFIG=konfig
      while [[ $(gcloud container clusters list --project ${_PROJECT_ID} --filter "STATUS=RUNNING AND resourceLabels.env:prod" --format="value(name)"| wc -l | awk '{print $1}') != "6" ]]; do
        echo "Waiting for all the clusters to be RUNNING."
        sleep 5
      done
      gcloud container clusters get-credentials $${GKE_PROD1_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD2_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD3_NAME} --zone $${GKE_PROD_REGION_1} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD4_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD5_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_PROD6_NAME} --zone $${GKE_PROD_REGION_2} --project ${_PROJECT_ID}
      gcloud container clusters get-credentials $${GKE_CONFIG_NAME} --zone $${GKE_CONFIG_REGION} --project ${_PROJECT_ID}

      export PROD1_NOMOS_STATUS=0
      until [[ $$PROD1_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD1_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD1_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD1_NOMOS_STATUS is $$PROD1_NOMOS_STATUS"
        sleep 5
      done
      export PROD2_NOMOS_STATUS=0
      until [[ $$PROD2_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD2_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD2_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD2_NOMOS_STATUS is $$PROD2_NOMOS_STATUS"
        sleep 5
      done
      export PROD3_NOMOS_STATUS=0
      until [[ $$PROD3_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD3_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_1}_$${GKE_PROD3_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD3_NOMOS_STATUS is $$PROD3_NOMOS_STATUS"
        sleep 5
      done
      export PROD4_NOMOS_STATUS=0
      until [[ $$PROD4_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD4_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD4_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD4_NOMOS_STATUS is $$PROD4_NOMOS_STATUS"
        sleep 5
      done
      export PROD5_NOMOS_STATUS=0
      until [[ $$PROD5_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD5_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD5_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD5_NOMOS_STATUS is $$PROD5_NOMOS_STATUS"
        sleep 5
      done
      export PROD6_NOMOS_STATUS=0
      until [[ $$PROD6_NOMOS_STATUS == "SYNCED" ]]
      do
        export PROD6_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_PROD_REGION_2}_$${GKE_PROD6_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "PROD6_NOMOS_STATUS is $$PROD6_NOMOS_STATUS"
        sleep 5
      done
      export CONFIG_NOMOS_STATUS=0
      until [[ $$CONFIG_NOMOS_STATUS == "SYNCED" ]]
      do
        export CONFIG_NOMOS_STATUS=$(./nomos status --contexts gke_${_PROJECT_ID}_$${GKE_CONFIG_REGION}_$${GKE_CONFIG_NAME} | sed -n 6p | awk '{print $1;}')
        echo -e "CONFIG_NOMOS_STATUS is $$CONFIG_NOMOS_STATUS"
        sleep 5
      done
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



