projectcapsule / capsule

Multi-tenancy and policy-based framework for Kubernetes.
https://capsule.clastix.io
Apache License 2.0
1.51k stars 150 forks source link

fix(controller): use ownerreferences without controller owner relation #1095

Closed oliverbaehler closed 1 month ago

oliverbaehler commented 1 month ago

This changes the fundamental behavior regarding namespace reconcilation. I stumbeled across this while automating against a platform, which creates namespaces for each cluster and adds controller references to the namespace. Since you can only have one controller reference per namespace, such a setup won't work.

With this change, instead of reconciling on the namespaces which are owned by the controller, we reconcile all the namespaces which have a tenant ownerreference.

netlify[bot] commented 1 month ago

Deploy Preview for capsule-documentation canceled.

Name Link
Latest commit 0ad09561184d479dd2fc05a9c5c7551dcd96cc1b
Latest deploy log https://app.netlify.com/sites/capsule-documentation/deploys/665463f388f2810008d20cf5