-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Labels
Description
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
https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/
koenvdheuvel and jaythamke