-
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
Add option --update to kops create to make it idempotent #2428
Comments
Note:
|
Workaround
All this code could be avoided with a flag |
I would also like an idempotent create-or-replace ... whatever the name ends up being |
Right now, to achieve idempotency in your automation, you have basically two choices, both of them bad:
Both options share the downside, that even if the format (keys and structure) remains the same, some values that kops would produce, will change over time (e.g. images in instance groups). So if you only use kops once, to create the cluster and then only modify the configs, you'll never update those values. There are projects where easy automation is not a big deal and at most falls into the "nice to have category". Kubernetes is not one of them. |
To support idempotency, kops can provide the
|
Issues go stale after 90d 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. |
/remove-lifecycle stale |
Issues go stale after 90d 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. |
/remove-lifecycle stale |
Issues go stale after 90d 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. |
/remove-lifecycle stale |
The intent of this issue (idempotent actions) can be achieved with
no bash Can we close this issue? |
@rifelpet |
@rifelpet, thanks for checking. Great! Closing this ticket then. |
@rifelpet you may have skipped a few steps there ;] What @canhnt suggested here #2428 (comment) is exactly one line to change something. What you're proposing requires the user to:
|
Also, the |
Reopening until we know if it solved! |
I am a bit confused from this issue. What is the proper way to implement kops in a CI/CD pipeline, currently? |
Issues go stale after 90d 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. |
/remove-lifecycle stale |
This issue seems to have moved a bit away from the original problem. |
The issue hasn't moved at all and certainly not to a different subject. |
I don't think adding the flag will ever happen as we try to nudge people as much as we can towards using spec files and |
Can you create a cluster with |
Yes,
|
That's all I personally was looking for way bake when, just a single idempotent create-or-update command, I couldn't care less if it was |
Issues go stale after 90d 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. |
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. |
/remove-lifecycle rotten |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@k8s-triage-robot: 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. |
It would be nice for CI systems if typing
kops create...
would always give the same result.
But running is twice returns a message
(...) already exists
:Repro steps
create
---> it fails with:
cluster "k8s.prod.eu-west-1.aws.redacted.net" already exists; use 'kops update cluster' to apply changes
Proposal
Add flag
--update
tokops create
.If the cluster already exists and this flag is present, update it instead of creating it.
Alternative
The way helm does this is adding a flag
--install
on thehelm upgrade
doc command instead of a flag--upgrade
flag on thehelm install
command.I think it makes it less easy to discover this feature, but I guess it also works.
The text was updated successfully, but these errors were encountered: