-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
When using GlobalTenantResource with both proxy feature gates enabled, Capsule and Capsule Proxy fight about the capsule.clastix.io/managed-by label on the replicated resources inside the tenant namespace.
How to reproduce
I was able to reproduce the issue in a local Kind cluster:
https://github.com/larsgerber/kind/tree/main/capsule/replication
Expected behavior
Capsule should ignore this label when doing the reconciliation loop. Otherwise after x seconds (resyncPeriod) all resources replicated by Capsule will be mutated two times.
Logs
=== NetworkPolicy allow-all-ingress UPDATE detected ===
User: system:serviceaccount:capsule-system:capsule
Change detected in full object (excluding volatile fields):
--- old
+++ new
@@ -9,7 +9,6 @@
"creationTimestamp": "2025-09-12T10:53:06Z",
"generation": 1,
"labels": {
- "capsule.clastix.io/managed-by": "oil",
"capsule.clastix.io/resources": "0",
"capsule.clastix.io/tenant": "oil",
"foo": "bay",
10.244.0.1 - - [12/Sep/2025 12:43:15] "POST /validate?timeout=10s HTTP/1.1" 200 -
=== NetworkPolicy allow-all-ingress UPDATE detected ===
User: system:serviceaccount:capsule-system:capsule-proxy
Change detected in full object (excluding volatile fields):
--- old
+++ new
@@ -9,6 +9,7 @@
"creationTimestamp": "2025-09-12T10:53:06Z",
"generation": 1,
"labels": {
+ "capsule.clastix.io/managed-by": "oil",
"capsule.clastix.io/resources": "0",
"capsule.clastix.io/tenant": "oil",
"foo": "bay",
10.244.0.1 - - [12/Sep/2025 12:43:15] "POST /validate?timeout=10s HTTP/1.1" 200 -Additional context
- Capsule-Proxy version: capsule-proxy:v0.9.13
- Helm Chart version: capsule-proxy-0.9.13
- Kubernetes version: v1.34.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working