File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
k8s-tests/chainsaw/deployment-policy Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 9292 echo "=== Monitoring linear ramp-up rollout ==="
9393
9494 LAST_BATCH_SIZE=0
95+ i=1
9596
96- for i in {1.. 120} ; do
97+ while [ $i -le 120 ] ; do
9798 COMPLETE_NODES=$(kubectl get skyhook linear-strategy-test \
9899 -o jsonpath='{.status.completeNodes}' 2>/dev/null || echo "0/8")
99100 TOTAL_COMPLETE=$(echo "$COMPLETE_NODES" | cut -d'/' -f1)
@@ -115,7 +116,7 @@ spec:
115116 LAST_BATCH_SIZE=$BATCH_SIZE
116117 fi
117118
118- if [ "$TOTAL_COMPLETE" == "8" ]; then
119+ if [ "$TOTAL_COMPLETE" = "8" ]; then
119120 echo "✓ All nodes completed!"
120121 break
121122 fi
@@ -127,6 +128,7 @@ spec:
127128 fi
128129
129130 sleep 5
131+ i=$((i + 1))
130132 done
131133
132134 - name : verify-linear-progression
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ spec:
124124 content : |
125125 echo "=== Monitoring rollout progress ==="
126126
127- for i in {1..120}; do
127+ i=1
128+ while [ $i -le 120 ]; do
128129 COMPLETE_NODES=$(kubectl get skyhook multi-compartment-test \
129130 -o jsonpath='{.status.completeNodes}' 2>/dev/null || echo "0/15")
130131 TOTAL_COMPLETE=$(echo "$COMPLETE_NODES" | cut -d'/' -f1)
@@ -141,7 +142,7 @@ spec:
141142
142143 echo "[$i/120] Complete: $TOTAL_COMPLETE/15 | InProgress: $TOTAL_IN_PROGRESS | Compartments: crit=$CRIT_COMPLETE std=$STD_COMPLETE test=$TEST_COMPLETE"
143144
144- if [ "$TOTAL_COMPLETE" == "15" ]; then
145+ if [ "$TOTAL_COMPLETE" = "15" ]; then
145146 echo "✓ All nodes completed!"
146147 break
147148 fi
@@ -153,6 +154,7 @@ spec:
153154 fi
154155
155156 sleep 5
157+ i=$((i + 1))
156158 done
157159
158160 - name : verify-final-state
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ spec:
121121 content : |
122122 echo "=== Monitoring rollout progress ==="
123123
124- for i in {1..120}; do
124+ i=1
125+ while [ $i -le 120 ]; do
125126 COMPLETE_NODES=$(kubectl get skyhook overlapping-selectors-test \
126127 -o jsonpath='{.status.completeNodes}' 2>/dev/null || echo "0/6")
127128 TOTAL_COMPLETE=$(echo "$COMPLETE_NODES" | cut -d'/' -f1)
@@ -137,7 +138,7 @@ spec:
137138
138139 echo "[$i/120] Complete: $TOTAL_COMPLETE/6 | InProgress: $TOTAL_IN_PROGRESS | Compartments: us-west=$USWEST_COMPLETE prod=$PROD_COMPLETE prod-uswest=$PROD_USWEST_COMPLETE"
139140
140- if [ "$TOTAL_COMPLETE" == "6" ]; then
141+ if [ "$TOTAL_COMPLETE" = "6" ]; then
141142 echo "✓ All nodes completed!"
142143 break
143144 fi
@@ -149,6 +150,7 @@ spec:
149150 fi
150151
151152 sleep 5
153+ i=$((i + 1))
152154 done
153155
154156 - name : verify-final-state
You can’t perform that action at this time.
0 commit comments