Kubernetes controller for multi-tenancy. It propagates resources between namespaces accurately and allows tenant users to create/delete sub-namespaces.
We have installed the latest version of Accurate (1.3.0), which includes migration to SSA (https://github.com/cybozu-go/accurate/pull/112). While everything seems to work well, we have noticed that pre-existing resources (from before we installed the release with migration to SSA) have some suspicious managedFields. Example for a namespace controlled by a sub-namespace:
This results in unset fields in the SSA patch to retain in the owned resource, which is the issue the migration to SSA PR was supposed to solve (https://github.com/cybozu-go/accurate/issues/98).
Environments
N/A
To Reproduce
Steps to reproduce the behavior:
Install one of the previous versions of Accurate before we migrated to SSA.
Create a SubNamespace adding a label/annotation to the sub-namespace.
Upgrade Accurate to the latest version including migration to SSA
Remove sub-namespace a label/annotation from SubNamespace created in 2.
Observe the label/annotation is still present on sub-namespace.
Expected behavior
The label/annotation removed from SubNamespace spec should be removed from sub-namespace.
Describe the bug
We have installed the latest version of Accurate (1.3.0), which includes migration to SSA (https://github.com/cybozu-go/accurate/pull/112). While everything seems to work well, we have noticed that pre-existing resources (from before we installed the release with migration to SSA) have some suspicious
managedFields
. Example for a namespace controlled by a sub-namespace:This results in unset fields in the SSA patch to retain in the owned resource, which is the issue the migration to SSA PR was supposed to solve (https://github.com/cybozu-go/accurate/issues/98).
Environments
N/A
To Reproduce
Steps to reproduce the behavior:
SubNamespace
created in 2.Expected behavior
The label/annotation removed from
SubNamespace
spec should be removed from sub-namespace.Additional context
I know how to fix this and will prepare a PR. 🤠