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

Handle namespace recreated in resource syncer #981

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

tpantelis
Copy link
Contributor

If a namespace is deleted and the namespace was previously seen, ie there was at least one resource previously synced in that namespace, then retrieve all the cached resource keys in the namespace and add them to the missingNamespaces set. If the namespace is later recreated, then those resources will be re-queued and re-synced.

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr981/tpantelis/handle_ns_delete

- React to all verbs, not just "create"

- When a namesapce is deleted, delete all contained resources

- Update unit tests

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
If a namespace is deleted and the namespace was previously seen,
ie there was at least one resource previously synced in that namespace,
then retrieve all the cached resource keys in the namespace and add them
to the missingNamespaces set. If the namespace is later recreated,
then those resources will be re-queued and re-synced.

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@tpantelis tpantelis enabled auto-merge (rebase) August 29, 2024 13:58
@tpantelis tpantelis merged commit 31ab910 into submariner-io:devel Aug 30, 2024
16 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr981/tpantelis/handle_ns_delete]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants