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

Inefficient Deletion Handling #354

Open
kavishdahekar opened this issue Oct 30, 2024 · 0 comments
Open

Inefficient Deletion Handling #354

kavishdahekar opened this issue Oct 30, 2024 · 0 comments
Labels

Comments

@kavishdahekar
Copy link

Describe the bug
When a secret is created for replication across a large number of namespaces (e.g., 10,000) using the replicator.v1.mittwald.de/replicate-to annotation, the replicator first begins replicating the secret to all target namespaces. If the secret is deleted shortly afterward, the replicator does not stop but completes the initial replication to all the 10k namespaces before detecting the deletion event. This causes it to then later remove the replicated secret from all 10,000 namespaces, resulting in unnecessary replication and deletion operations that consume significant resources.

To Reproduce

  1. Create a secret in a source namespace and configure it to replicate to 10,000 target namespaces.
  2. After confirming replication has started, delete the source secret within a short period.
  3. Observe that the replicator completes the full replication process to all target namespaces before initiating deletion operations across those namespaces.

Expected behavior
When a source secret is deleted shortly after creation, the replicator should ideally recognize and halt any pending or ongoing replication tasks and prioritize deletion across all target namespaces. This would optimize resource usage and reduce redundant operations.

Environment:

  • Kubernetes version: v1.30.5
  • kubernetes-replicator version: v2.10.2

Additional context
n/a

@kavishdahekar kavishdahekar changed the title Inefficient Deletion Handling in High Namespace Secret Replication Inefficient Deletion Handling Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant