Skip to content
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

Added skipUpdateUnreachable flag #2528

Merged
merged 6 commits into from
Sep 13, 2023

Conversation

raelix
Copy link
Contributor

@raelix raelix commented Aug 8, 2023

Proposed changes

The Pulumi deleteUnreachable flag is great when a cluster is removed but there is no way to proceed with applying the changes on multiple K8s clusters if there is just one not available, in this case the full update will fail (.e.g updating charts over multiple K8s clusters where 1+ are not currently available).

The proposed feature introduce a new variable called skipUpdateUnreachable and allow to run pulumi up without failing if one or more Kubernetes cluster are unreachable (showing warning messages).
The feature allows to make changes on an existing system which might consist of multiple K8 clusters and at that specific moment has some clusters down.

Related issues (optional)

Fixes: #2565

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@raelix
Copy link
Contributor Author

raelix commented Aug 17, 2023

H @lblackstone are there any updates on this? What do you think?
Thanks in advance!

@iwahbe
Copy link
Member

iwahbe commented Aug 28, 2023

Hi @raelix. Thanks for the PR. It looks good from my perspective, but I don't have a lot of context on pulumi-kubernetes. I have tagged some of my colleagues to review.

@iwahbe
Copy link
Member

iwahbe commented Aug 28, 2023

/run-acceptance-tests

@pulumi-bot
Copy link
Contributor

@raelix
Copy link
Contributor Author

raelix commented Sep 11, 2023

Hi @iwahbe thanks! Do you have any idea/updates about this changes? Thanks :)

@rquitales
Copy link
Contributor

@raelix Apologies for the delays on getting this reviewed - I have been OOO for a bit. This change mostly looks good to me, though I'm hesitant on merging an external API change without testing despite the feature being gated. I'll re-work this PR and hopefully land this soon.

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

@github-actions
Copy link

PR is now waiting for a maintainer to run the acceptance tests.
Note for the maintainer: To run the acceptance tests, please comment /run-acceptance-tests on the PR

Copy link
Contributor

@rquitales rquitales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: approving the changes from the original author as the code looks good, and I've manually verified that it works as expected. Please review the additional test code I've just committed.

@rquitales
Copy link
Contributor

/run-acceptance-tests

@pulumi-bot
Copy link
Contributor

Copy link
Contributor

@EronWright EronWright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rquitales rquitales merged commit ef7fc76 into pulumi:master Sep 13, 2023
11 of 12 checks passed
@raelix
Copy link
Contributor Author

raelix commented Sep 14, 2023

thanks a lot @rquitales and @EronWright !

@rquitales
Copy link
Contributor

This is now available in the v4.2.0 release of the provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add skipUpdateUnreachable flag to continue updates when some clusters are unreachable
5 participants