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

Implement conditional remediation #47

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

seaneagan
Copy link
Contributor

Fixes #41

@seaneagan seaneagan force-pushed the conditional-remediation branch 16 times, most recently from 93a04eb to 96d997a Compare August 18, 2020 20:12
@seaneagan seaneagan force-pushed the conditional-remediation branch 14 times, most recently from 9ee3fa0 to dd87af9 Compare August 20, 2020 17:56
@seaneagan seaneagan force-pushed the conditional-remediation branch from 2668e4d to 25c01a8 Compare August 20, 2020 20:45
@seaneagan seaneagan marked this pull request as ready for review August 20, 2020 21:08
@hiddeco hiddeco self-assigned this Aug 20, 2020
@hiddeco hiddeco self-requested a review August 20, 2020 22:47
@hiddeco hiddeco removed their assignment Aug 20, 2020
@hiddeco hiddeco added area/helm Helm related issues and pull requests area/ux In pursuit of a delightful user experience enhancement New feature or request labels Aug 20, 2020
@hiddeco hiddeco force-pushed the conditional-remediation branch 4 times, most recently from 4f00367 to 9838e51 Compare August 21, 2020 13:39
@hiddeco hiddeco force-pushed the conditional-remediation branch 2 times, most recently from 8a5a975 to 3121f8b Compare August 21, 2020 14:29
controllers/helmrelease_controller.go Outdated Show resolved Hide resolved
controllers/helmrelease_controller.go Outdated Show resolved Hide resolved
@hiddeco hiddeco force-pushed the conditional-remediation branch from 3121f8b to b916aa4 Compare August 21, 2020 14:56
api/v2alpha1/helmrelease_types.go Outdated Show resolved Hide resolved
api/v2alpha1/helmrelease_types.go Outdated Show resolved Hide resolved
api/v2alpha1/helmrelease_types.go Outdated Show resolved Hide resolved
api/v2alpha1/helmrelease_types.go Show resolved Hide resolved
docs/spec/v2alpha1/helmreleases.md Outdated Show resolved Hide resolved
@seaneagan seaneagan force-pushed the conditional-remediation branch from b745720 to d60e269 Compare August 24, 2020 17:10
@hiddeco hiddeco force-pushed the conditional-remediation branch from 7b427ed to 856b54b Compare August 24, 2020 19:01
@hiddeco
Copy link
Member

hiddeco commented Aug 24, 2020

Tidied it up a bit more @seaneagan, and fixed some panics due to the pointer changes. Some of the end to end tests are still failing, other than that it looks good to go to me.

@seaneagan seaneagan force-pushed the conditional-remediation branch 2 times, most recently from 820e1c9 to a7730cb Compare August 24, 2020 22:10
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Can not thank you enough for your work on this @seaneagan 🥇 🌷

seaneagan and others added 2 commits August 25, 2020 17:35
This commit adds support for conditional remediation, enabling the user
to:

* configure if test failures should be ignored
* configure what action should taken when a Helm install or upgrade
  action fails (e.g. rollback, uninstall)
* configure if a failed Helm action should be retried
* configure if a failed release should be kept for debugging purposes

The previous behaviour where failed Helm tests did not mark the
`HelmRelease` as not `Ready` has changed, it now marks them as failed
by default.

Co-authored-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco force-pushed the conditional-remediation branch from 940265c to a52ba65 Compare August 25, 2020 15:38
@hiddeco hiddeco merged commit fa738a7 into fluxcd:master Aug 25, 2020
jtyr pushed a commit to jtyr/fluxcd-helm-controller that referenced this pull request Dec 14, 2023
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 area/ux In pursuit of a delightful user experience enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditional remediation on Helm actions
2 participants