Skip to content

Skip waiting for paused deployments#5789

Merged
bacongobbler merged 1 commit intohelm:masterfrom
perher:no-wait-paused
Oct 1, 2019
Merged

Skip waiting for paused deployments#5789
bacongobbler merged 1 commit intohelm:masterfrom
perher:no-wait-paused

Conversation

@perher
Copy link
Copy Markdown
Contributor

@perher perher commented May 23, 2019

What this PR does / why we need it:
In my chart I have multiple Deployments for different micro-services in my application. Some of the services have upgrade dependencies or requires special logic to perform rolling upgrade. To facilitate this I set those deployments to be in paused state before the chart is upgraded.

When running helm upgrade with paused deployments and when using the --wait flag, the upgrade processed is stalled forever (or until timeout) since Kubernetes will not perform rolling upgrade on paused deployments. I propose to have Tiller ignore paused deployments altogether when waiting for a upgrade to finish since these will otherwise block the upgrade process.

Signed-off-by: Per Hermansson <perher1@gmail.com>
@helm-bot helm-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 23, 2019
@bacongobbler bacongobbler added the bug Categorizes issue or PR as related to a bug. label Sep 30, 2019
@bacongobbler
Copy link
Copy Markdown
Member

bacongobbler commented Sep 30, 2019

Hey @perher! Thanks for the bugfix. I've restarted the CI tests as it appears to be a flaky error. This looks like a good fix. If you have the time, would you mind porting this over to the dev-v3 branch as well? That way Helm 3 also has the same fix. Much appreciated!

@perher perher mentioned this pull request Oct 1, 2019
3 tasks
@bacongobbler bacongobbler merged commit 0171f9b into helm:master Oct 1, 2019
@bacongobbler bacongobbler added Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR v3 port complete For completed v2->v3 ports labels Oct 1, 2019
@gjenkins8 gjenkins8 removed the Needs v3 backport Label PRs for v4/main, which are still applicable to v3 so need a separate backport PR label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. v3 port complete For completed v2->v3 ports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants