Merge pull request #11444 from microsoft/danmihai1/k8s-policy-rc

tests: k8s-policy-rc: print pod descriptions
This commit is contained in:
Dan Mihai 2025-06-23 16:14:56 -07:00 committed by GitHub
commit 89dcc8fb27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ test_rc_policy() {
# Wait for all the expected pods to be created. # Wait for all the expected pods to be created.
local pod_creation_sleep="10" local pod_creation_sleep="10"
local count=0 local count=0
local launched_pods=() launched_pods=()
while [ $count -lt 6 ] && [ "${#launched_pods[@]}" -ne "${number_of_replicas}" ]; do while [ $count -lt 6 ] && [ "${#launched_pods[@]}" -ne "${number_of_replicas}" ]; do
bats_unbuffered_info "sleep count=${count}, launched ${#launched_pods[@]} pods, sleeping ${pod_creation_sleep}..." bats_unbuffered_info "sleep count=${count}, launched ${#launched_pods[@]} pods, sleeping ${pod_creation_sleep}..."
sleep "${pod_creation_sleep}" sleep "${pod_creation_sleep}"