-
Notifications
You must be signed in to change notification settings - Fork 91
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
Remove SBR finalizers in the test namespace before deleting the namespace #639
Remove SBR finalizers in the test namespace before deleting the namespace #639
Conversation
d2e2330
to
33c96f5
Compare
/retest |
b2b788d
to
24b115f
Compare
/retest |
Should #626 be considered in this regard? I think we should give that a look |
/test 4.5-unit |
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.
deploy-clean
make rule suffers from the same issue, because SBR CRD cannot be removed if SBR CRs contain finalizers.
this PR tend to fix the issue that impacts local dev workflow. Hence, @DhritiShikhar @Avni-Sharma @akashshinde @baijum @isutton please test it locally. Right now, the following workflow is impacted and does not work on master: 1 start the operator with but it should work on this PR. |
I tried this PR locally. ➜ service-binding-operator git:(remove-finalizer) make test-acceptance VERBOSE=3
Requirement already up-to-date: setuptools in ./out/venv3/lib/python3.8/site-packages (50.0.0)
Requirement already up-to-date: pip in ./out/venv3/lib/python3.8/site-packages (20.2.2)
servicebindingrequest.apps.openshift.io/binding-request-1 patched
servicebindingrequest.apps.openshift.io/binding-request-2 patched
servicebindingrequest.apps.openshift.io/binding-request-a-d-s patched
servicebindingrequest.apps.openshift.io/binding-request-a-s-d patched
servicebindingrequest.apps.openshift.io/binding-request-d-a-s patched
servicebindingrequest.apps.openshift.io/binding-request-empty-app patched
servicebindingrequest.apps.openshift.io/binding-request-knative patched
servicebindingrequest.apps.openshift.io/binding-request-missing-app patched (no change)
namespace "test-namespace-6ec92571" deleted
SBR finalizers are removed. |
/retest |
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.
#639 (review) is still not addressed
223f623
to
86ddefe
Compare
I've rebased and squashed the commits. |
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 - with an additional question
/retest |
/approve @pmacik please squash the commits before we merge it. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pedjak 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 |
…espace. * Remove SBR finalizers also for deploy-clean target.
d3764ed
to
1fc87bb
Compare
/lgtm |
Motivation
Currently the acceptance tests setup deletes the test namespace and creates a new one. But if there are finalizers set on SBRs in that test namespace (for whatever reason) the deletion of the namespace is stuck in Terminating state.
Like in #476
Changes
This PR removes all the finalizers from all the SBRs in the test namespace just before it attempts the namespace deletion.
Testing
make e2e-cleanup