Skip to content

Add support for Helm --wait-for-jobs flag - #271

Merged
hiddeco merged 1 commit into
fluxcd:mainfrom
kewats:main
Jun 1, 2021
Merged

hiddeco merged 1 commit into
fluxcd:mainfrom
kewats:main

Conversation

@kewats

@kewats kewats commented Jun 1, 2021

Copy link
Copy Markdown
Contributor

Adding support for setting wait-for-jobs in HelmRelease.

helm/helm#5948

@hiddeco hiddeco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your pull request 🌻

Think it would be better to enable this by default (as we do with --wait), and make the flag an "inverse", so e.g. DisableWaitForJobs. This ensures people get the best automated experience by default.

@kewats

kewats commented Jun 1, 2021

Copy link
Copy Markdown
Contributor Author

Sure, I will make the change. I agree that gives a better experience by default.

@hiddeco

hiddeco commented Jun 1, 2021

Copy link
Copy Markdown
Member

When you are done with the changes, please smash your commits into one as the change is quite small. Thank you ☕

@kewats

kewats commented Jun 1, 2021

Copy link
Copy Markdown
Contributor Author

Hi @hiddeco, I have inverted the flag and squashed my commits. Please review, thanks!

Comment thread docs/spec/v2alpha1/helmreleases.md Resolved
Signed-off-by: Santosh Kewat <[email protected]>

Added support for helm waitForJobs

Signed-off-by: Santosh Kewat <[email protected]>

Minor fixes

Signed-off-by: Santosh Kewat <[email protected]>

Changed WaitForJobs to DisableWaitForJobs

Signed-off-by: Santosh Kewat <[email protected]>

Minor fixes

Signed-off-by: Santosh Kewat <[email protected]>

Changed WaitForJobs to DisableWaitForJobs

Signed-off-by: Santosh Kewat <[email protected]>

Removed unnecessary update to v2alpha1

Signed-off-by: Santosh Kewat <[email protected]>

@hiddeco hiddeco left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks a lot @kewats 🥇 💯

I think your PR needs a tiny rebase with main so that I am able to merge it without any conflicts.

@hiddeco hiddeco added area/helm Helm related issues and pull requests enhancement New feature or request labels Jun 1, 2021
@hiddeco hiddeco changed the title Adding support for helm wait-for-jobs Add support for Helm --wait-for-jobs flag Jun 1, 2021
@hiddeco
hiddeco merged commit e25d689 into fluxcd:main Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/helm Helm related issues and pull requests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants