-
Notifications
You must be signed in to change notification settings - Fork 91
fix #314 #359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #314 #359
Conversation
Signed-off-by: KfreeZ <[email protected]>
Signed-off-by: KfreeZ <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
pods_count=$(kubectl get pods -n $MODIFY_STEP_NAMESPACE -o jsonpath='{.items[*].metadata.name}' | wc -w) | ||
# Wait until all pods are ready | ||
wait_until_all_pod_ready $MODIFY_STEP_NAMESPACE 300s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could leads test failure. wait_until_all_pod_ready
doesn't support the case when some pods are being deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for reminding, I will keep monitoring it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please enhance wait_until_all_pod_ready
so it can omit those pods with Terminating
status when it tries to get the list of pods to wait for ready?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I am just about to do it
Description
this is a fix for #314
root cause: the error happens when script was trying to delete the pipeline before the update is done.
solution: to avoid the error when delete the pipeline, wait for all pods ready, then delete.
Issues
#314
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
'n/a'
Tests
CI/CD is covering this