Skip to content

Commit

Permalink
Merge branch 'main' into feat/FSADT1-1593
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj authored Dec 17, 2024
2 parents f28f1f3 + 37a6274 commit 9a20d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,10 @@ jobs:
run: |
oc login --token=${{ secrets.OC_TOKEN }} --server=${{ secrets.OC_SERVER }}
oc project ${{ secrets.OC_NAMESPACE }} # Safeguard!
oc scale dc/nr-forest-client-${{ github.event.number }}-legacy --replicas=0
oc scale deployment/nr-forest-client-${{ github.event.number }}-legacy --replicas=0
undesired_replicas=0
while true; do
available_replicas=$(oc get dc/nr-forest-client-${{ github.event.number }}-legacy -n ${{ secrets.OC_NAMESPACE }} -o jsonpath='{.status.availableReplicas}')
available_replicas=$(oc get deployment/nr-forest-client-${{ github.event.number }}-legacy -n ${{ secrets.OC_NAMESPACE }} -o jsonpath='{.status.availableReplicas}')
if [[ "$available_replicas" -ge "$undesired_replicas" ]]; then
echo "DeploymentConfig ${{ secrets.OC_NAMESPACE }}-${{ github.event.number }}-legacy is now available with $available_replicas replicas."
Expand Down Expand Up @@ -575,7 +575,7 @@ jobs:
run: |
oc login --token=${{ secrets.OC_TOKEN }} --server=${{ secrets.OC_SERVER }}
oc project ${{ secrets.OC_NAMESPACE }} # Safeguard!
oc scale dc/nr-forest-client-${{ github.event.number }}-legacy --replicas=1
oc scale deployment/nr-forest-client-${{ github.event.number }}-legacy --replicas=1
results:
name: PR Results
Expand Down

0 comments on commit 9a20d1c

Please sign in to comment.