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

Allow users to add annotation to set configure rollback #6546

Merged
merged 5 commits into from
Sep 11, 2023

Conversation

OchiengEd
Copy link
Contributor

Description of the change:

Whenever a helm-based operator encounters an error during reconcilliation, by default, it would attempt to perform a rollback with the --force option. While this works as expected in most scenarios, there are a few edge cases where performing a rollback with --force could have undesired side effects.

Adding annotation to the custom resource, helm.sdk.operatorframework.io/rollback-force: false therefore allows a user, to change the default behavior of the helm-based operator whereby, rollbacks will be performed without the --force option whenever an error is encountered.%

Motivation for the change:

This change was motivated by the issue #6494

Checklist

If the pull request includes user-facing changes, extra documentation is required:

Closes #6494

Allow users to add annotation, "helm.sdk.operatorframework.io/rollback-force", to set rollback
to false. Default value is true

Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 15:29 — with GitHub Actions Inactive
Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 15, 2023 18:21 — with GitHub Actions Inactive
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
internal/helm/controller/reconcile.go Outdated Show resolved Hide resolved
internal/helm/release/manager.go Outdated Show resolved Hide resolved
internal/helm/controller/reconcile.go Outdated Show resolved Hide resolved
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2023
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:18 — with GitHub Actions Inactive
…-force annotation

Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
@OchiengEd OchiengEd temporarily deployed to deploy August 17, 2023 16:57 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 17:37 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:32 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:53 — with GitHub Actions Inactive
Signed-off-by: Edmund Ochieng <ochienged@gmail.com>
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:57 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 18:57 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 19:00 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 19:00 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 19:01 — with GitHub Actions Inactive
@OchiengEd OchiengEd temporarily deployed to deploy September 11, 2023 19:01 — with GitHub Actions Inactive
Copy link
Member

@varshaprasad96 varshaprasad96 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2023
@OchiengEd OchiengEd modified the milestone: v1.32.0 Sep 11, 2023
@OchiengEd OchiengEd merged commit 8ceb4e0 into operator-framework:master Sep 11, 2023
27 checks passed
@OchiengEd OchiengEd deleted the configurable-rollback branch September 11, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm operator constantly creates secret for a failed Operand upgrade
3 participants