Add new --wait-for-creation flag in kubectl wait command

kubectl wait command errors out when the waited resource does not exist.
But we need to provide a way to the users about intentionally also waiting for
the creation of resources.

This PR introduces a new flag to cover waiting for the creation of resources
with preserving the default behavior.
This commit is contained in:
Arda Güçlü
2024-01-26 15:53:55 +03:00
parent 8565e37525
commit e24b9a022f
3 changed files with 158 additions and 13 deletions

View File

@@ -1036,6 +1036,7 @@ runTests() {
####################
record_command run_wait_tests
record_command run_wait_with_non_existence_check_tests
####################
# kubectl debug #