-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Kops --wait #1517
Comments
I am not a huge fan of putting in a wait. But will let @kris-nova and @justinsb weigh in as well. @ajohnstone adding issue for adding kubectl get cs equivalent in kops validate |
What is the objection to a wait command @chrislovecnm ? |
I am all for the Concerns/QuestionsWhat do we think about
|
I like to keep this async or a single call. Implementing something I can do with a while loop in bash, just seems overkill. But that is just me. 🤷♂️ I can see that there is value to the user. I like having the validate wait, with a configurable amount of loops, more palatable. Putting a wait into the create, just seems overkill. But eh ... what do our users need :) |
@chrislovecnm I have that
But I think it would look much cleaner with just a |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/reopen |
@jbialy: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@ajohnstone do you want to reopen this? |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Could this be reopened once again? I think it'd be a very useful feature to have! |
I'm waiting for this feature too, this should be reopened |
Re-open! /reopen |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
no updates on this ? |
Would adding Right now I've just added this script/function to do so: kops_validate_loop() {
kops_exit_code=1
# `kops validate cluster` should exit with code 0 to be successful
while [[ $kops_exit_code -ne 0 ]]; do
# subshell to workaround set -e
kops_exit_code=$(kops validate cluster \
--name=$CONTEXT \
--state=$KOPS_STATE_STORE \
> /dev/null; echo $?)
if [[ $kops_exit_code -ne 0 ]]; then
# same as kops
echo "Cluster did not pass validation, will try again in 30s..."
sleep 30
fi
done
} (note that |
Doesn't |
@olemarkus indeed it does, I did not know that and this was the place I found when searching which doesn't mention it. Thanks for pointing that out! So I guess #7371 fixes this issue more or less. I will say that the docs are a bit confusing because |
|
Thanks @olemarkus changes in #9333 would've definitely made me notice that. Yea I recognize |
Executing both
kops cluster create ...
andkops cluster update
took 2.57 minutes for a new cluster. However the kubernetes cluster is not ready for use at this point.E.g.
It would be ideal to have kops with a --wait option for the cluster to be ready.
There is a similar ticket #139.
There are a few example scripts to wait for a cluster to be initialised, however would be ideal to have this part of kops.
Also to note @chrislovecnm kops cluster validate doesn't do anything with
kubectl get cs
maybe ideal to add into the kops validate cluster?@shadoi
or
The text was updated successfully, but these errors were encountered: