You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have secrets decrypted by sops operator. Secrets are created with metadata.ownerReferences set to Custom Resource managing the secret.
When secret is replicated metadata.ownerReferences is copied aswell which is causing issues.
To Reproduce
Create secret with metadata.ownerReferences.
Expected behavior
The ownerReferences should be removed as replicator handles deletions internally. Alternatively ownerReferences could be used instead of built-in deletion handling.
Environment:
Kubernetes version: 1.19
kubernetes-replicator version: 2.3.0
Additional context
From reviewing replicator code it neither removes or sets ownerReferences
I'll see if I can find the time to put some work into this at some point in the (hopefully) near future. In the meantime, PRs are of course always welcome. 🙂
So it turns out someone had created SopsSecret in both src and dest namespaces aswell as enabling replicator. So replicator and sops-operator were trying to overwrite the same dest secret.
After removing SopsSecret in target namespace the war has ended. It appears metadata.ownerReferences is not being replicated.
Could you please re-open this issue, since it still exists? I'm happy to see that @morganchristiansson could resolve his Problem with SopsSecrets, but the root cause still there.
Describe the bug
I have secrets decrypted by sops operator. Secrets are created with
metadata.ownerReferences
set to Custom Resource managing the secret.When secret is replicated
metadata.ownerReferences
is copied aswell which is causing issues.To Reproduce
Create secret with metadata.ownerReferences.
Expected behavior
The ownerReferences should be removed as replicator handles deletions internally. Alternatively ownerReferences could be used instead of built-in deletion handling.
Environment:
Additional context
From reviewing replicator code it neither removes or sets ownerReferences
https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/
The text was updated successfully, but these errors were encountered: