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

Overrides helms default value for WaitForJobs #601

Open
imduffy15 opened this issue Feb 3, 2023 · 1 comment
Open

Overrides helms default value for WaitForJobs #601

imduffy15 opened this issue Feb 3, 2023 · 1 comment

Comments

@imduffy15
Copy link

By default helm sets WaitForJobs to false, however, when using helm controller this field becomes true. This feels unexpected.

On helm controller a field of DisableWaitForJobs is present, this is a golang boolean which is false by default, however, when converted over to the WaitForJobs field of a helm rollback/update/install object the field is negated, that is !false which becomes true. That is, the default false for DisableWaitForJobs results in a true WaitForJobs which on helm is false by default.

Ref: https://github.com/fluxcd/helm-controller/blob/main/internal/runner/runner.go#L112

@hiddeco
Copy link
Member

hiddeco commented Feb 3, 2023

This is by design, as we also enable --wait by default to ensure we provide users with the best automated experience. As without these defaults, any job failures would go unnoticed. Ref: #271 (review)

Note that the goal of the HelmRelease API is not to be a 1:1 mapping of default Helm flags, but rather sane declarative configuration for continuous deployments and automation.

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

No branches or pull requests

2 participants