File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -105,11 +105,14 @@ EOF
105
105
output_message_1=$( kubectl wait \
106
106
--for=' jsonpath=spec.template.spec.containers[?(@.name=="busybox")].image=busybox' \
107
107
deploy/test-3)
108
+ # Command: Wait with jsonpath without value with check-once behavior
109
+ output_message_2=$( kubectl wait --for=jsonpath=' {.status.replicas}' deploy/test-3 --timeout=0 2>&1 )
108
110
set -o errexit
109
111
110
112
# Post-Condition: Wait succeed
111
113
kube::test::if_has_string " ${output_message_0} " ' deployment.apps/test-3 condition met'
112
114
kube::test::if_has_string " ${output_message_1} " ' deployment.apps/test-3 condition met'
115
+ kube::test::if_has_string " ${output_message_2} " ' deployment.apps/test-3 condition met'
113
116
114
117
# Clean deployment
115
118
kubectl delete deployment test-3
You can’t perform that action at this time.
0 commit comments