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

🐛 Avoid syncers deleting namespace from other synctargets. #2264

Conversation

jmprusi
Copy link
Member

@jmprusi jmprusi commented Oct 26, 2022

Summary

This PR adds an additional check (synctarget UID) when deleting downstream namespaces to avoid a reconciliation loop between different syncers from different kcp instances. (or for example, an old syncer from a previous KCP deployment)

Related issue(s)

related to: #2041 (doesn't fix it as there are multiple root causes for that issue)

@openshift-ci openshift-ci bot requested review from ncdc and sttts October 26, 2022 13:22
@jmprusi jmprusi force-pushed the jmprusi/syncer-UID-downstream-namespace-check branch 2 times, most recently from 79c67f9 to 2a8dbbe Compare October 26, 2022 13:47
@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 26, 2022
@jmprusi jmprusi force-pushed the jmprusi/syncer-UID-downstream-namespace-check branch from 2a8dbbe to 3e6853c Compare October 26, 2022 13:49
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 26, 2022
@davidfestal
Copy link
Member

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 26, 2022
@davidfestal
Copy link
Member

/test

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 26, 2022

@davidfestal: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test boilerplate
  • /test codegen
  • /test deps
  • /test e2e
  • /test e2e-multiple-runs
  • /test images
  • /test imports
  • /test lint
  • /test modules
  • /test test

Use /test all to run all jobs.

In response to this:

/test

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.

@davidfestal
Copy link
Member

/test all

@jmprusi jmprusi changed the title 🐛 Avoid syncers deleting namespace from other kcp/syncers. 🐛 Avoid syncers deleting namespace from other kcp/syncers. Oct 26, 2022
@jmprusi jmprusi changed the title 🐛 Avoid syncers deleting namespace from other kcp/syncers. 🐛 Avoid syncers deleting namespace from other synctargets. Oct 26, 2022
@stevekuznetsov
Copy link
Contributor

If we're hitting flakes please let's make sure we file issues for them with logs

@jmprusi
Copy link
Member Author

jmprusi commented Oct 26, 2022

@stevekuznetsov no flakes.. but the GitHub actions being stuck (not loading)

@davidfestal
Copy link
Member

/test all

@davidfestal
Copy link
Member

/test

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2022

@davidfestal: The /test command needs one or more targets.
The following commands are available to trigger required jobs:

  • /test boilerplate
  • /test codegen
  • /test deps
  • /test e2e
  • /test e2e-multiple-runs
  • /test images
  • /test imports
  • /test lint
  • /test modules
  • /test test

Use /test all to run all jobs.

In response to this:

/test

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.

@davidfestal
Copy link
Member

/test e2e-sharded

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2022

@davidfestal: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test boilerplate
  • /test codegen
  • /test deps
  • /test e2e
  • /test e2e-multiple-runs
  • /test images
  • /test imports
  • /test lint
  • /test modules
  • /test test

Use /test all to run all jobs.

In response to this:

/test e2e-sharded

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.

@davidfestal davidfestal changed the title 🐛 Avoid syncers deleting namespace from other synctargets. 🐛 Avoid syncers deleting namespace from other synctargets. Oct 27, 2022
@jmprusi
Copy link
Member Author

jmprusi commented Oct 27, 2022

/test e2e

@jmprusi
Copy link
Member Author

jmprusi commented Oct 27, 2022

/test e2e-sharded

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2022

@jmprusi: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test boilerplate
  • /test codegen
  • /test deps
  • /test e2e
  • /test e2e-multiple-runs
  • /test images
  • /test imports
  • /test lint
  • /test modules
  • /test test

Use /test all to run all jobs.

In response to this:

/test e2e-sharded

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.

@jmprusi
Copy link
Member Author

jmprusi commented Oct 27, 2022

/test all

@jmprusi jmprusi force-pushed the jmprusi/syncer-UID-downstream-namespace-check branch from 3e6853c to 1c0acf8 Compare October 27, 2022 09:41
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2022
@jmprusi
Copy link
Member Author

jmprusi commented Oct 27, 2022

@davidfestal I've force pushed to trigger the jobs that didn't start. can you add lgtm again? thanks!

@davidfestal
Copy link
Member

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidfestal, stevekuznetsov

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

@openshift-merge-robot openshift-merge-robot merged commit 1953e8d into kcp-dev:main Oct 27, 2022
@jmprusi jmprusi deleted the jmprusi/syncer-UID-downstream-namespace-check branch October 27, 2022 12:23
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants