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
fix noobaa uninstall process #1698
fix noobaa uninstall process #1698
Conversation
Hi @Utkarsh-pro. Thanks for your PR. I'm waiting for a red-hat-storage member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign umangachapagain |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put go.mod go.sum and vendor/ changes in 1st commit, hack/common.sh in 2nd commit, make gen-latest-csv
changes in 3rd commit and reconciler changes in 4th commit.
We do not want to mix dependency changes with code changes.
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
4fc6a96
to
76b7fef
Compare
@umangachapagain, I have a failing test here. I am not sure if it is related to this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Please add description in commit message for "fix noobaa uninstall" and should be good to merge. You can copy the PR description.
NooBaa (MCG) operator has started prohibiting Noobaa CR deletion as a default behaviour. Setting `spec.cleanupPolicy.allowNoobaaDeletion` to `true` forces the operator to allow the CR deletions. Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
76b7fef
to
95f6b43
Compare
@Utkarsh-pro: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love to see a good commit structure 👍
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jarrpa, utkarsh-pro The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-4.11 |
@agarwal-mudit: #1698 failed to apply on top of branch "release-4.11":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@Utkarsh-pro |
@agarwal-mudit here is the BZ (for 4.11) associated with this PR. |
@Utkarsh-pro ok, thanks. Can you create a PR to backport the fix to release-4.11 branch? |
@agarwal-mudit , just to clarify: I have to create this same PR against |
@Utkarsh-pro Normally we use automated cherry-picking but when that doesn't work because of some conflict (like what is happening in this PR), we have to manually cherry pick (using cherry pick -x [commit-id]) and resolve the conflicts. |
@agarwal-mudit is #1717 fine? |
Signed-off-by: Utkarsh Srivastava srivastavautkarsh8097@gmail.com
Description
This PR fixes noobaa uninstall process.
NooBaa operator has started to prohibit Noobaa CR deletion by default after a BZ was created, however if
spec.cleanupPolicy.allowNoobaaDeletion = true
then deletion of CR is allowed. This PR setsspec.cleanupPolicy.allowNoobaaDeletion
to true whenStorageCluster
deletion is reconciled.Test Performed
OCS operator built from this PR was installed on a fresh openshift cluster.
oc delete noobaas.noobaa.io -n openshift-storage noobaa
- Must result in error:rror from server: admission webhook "admissionwebhook.noobaa.io" denied the request: Deletion of NooBaa resource is prohibited
oc delete storageclusters.ocs.openshift.io -n openshift-storage example-storagecluster
- Must be able to delete the Noobaa CR.