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

🐛 logicalcluster-deletion: skip bound resources #2958

Merged

Conversation

sttts
Copy link
Member

@sttts sttts commented May 19, 2023

Skip deleting bound resources in the logicalcluster deletor as this can
race with the apibinding deletion controller. If the apibinding deletion
controller deletes an APIBinding and all its instances and then the
logicalcluster deletor tries to delete the collection of the same
resources (because it saw the resource in discovery), it will get a 404
and go into rate limited backoff, which we don't want.

Taken from @ncdc's rebase PR #2945.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 19, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from sttts. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sttts
Copy link
Member Author

sttts commented Jun 3, 2023

/retest

@xrstf
Copy link
Contributor

xrstf commented Jun 6, 2023

Closing & re-opening this PR to migrate it to the new Prow. Please do not be alarmed.

@xrstf xrstf closed this Jun 6, 2023
@xrstf xrstf reopened this Jun 6, 2023
@kcp-ci-bot kcp-ci-bot added dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 6, 2023
@mjudeikis
Copy link
Contributor

/retest all

@kcp-ci-bot
Copy link
Contributor

@mjudeikis: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test pull-kcp-build-image
  • /test pull-kcp-lint
  • /test pull-kcp-test-e2e
  • /test pull-kcp-test-e2e-multiple-runs
  • /test pull-kcp-test-e2e-sharded
  • /test pull-kcp-test-e2e-shared
  • /test pull-kcp-test-unit
  • /test pull-kcp-validate-prow-yaml
  • /test pull-kcp-verify
  • /test pull-kcp-verify-codegen

Use /test all to run all jobs.

In response to this:

/retest all

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.

@mjudeikis
Copy link
Contributor

@sttts is this still valid to merge? Looks green'ish

@mjudeikis
Copy link
Contributor

/test all

@sttts
Copy link
Member Author

sttts commented Oct 17, 2023

Yes. I just extracted it at the time because we didn't know where some flakes came from.

Skip deleting bound resources in the logicalcluster deletor as this can
race with the apibinding deletion controller. If the apibinding deletion
controller deletes an APIBinding and all its instances and then the
logicalcluster deletor tries to delete the collection of the same
resources (because it saw the resource in discovery), it will get a 404
and go into rate limited backoff, which we don't want.

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
@sttts sttts force-pushed the sttts-workspace-deletion-optimization-2 branch from 6b1b63a to 9d2b3a0 Compare October 17, 2023 12:22
@mjudeikis
Copy link
Contributor

/lgtm
/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Oct 18, 2023
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 80ca853a4431607def273490d45398859b281cb9

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 18, 2023
@kcp-ci-bot kcp-ci-bot merged commit cf57e83 into kcp-dev:main Oct 18, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants