loft-sh / vcluster-plugins

The plugin repository for vcluster. Extend virtual Kubernetes clusters with plugins.
11 stars 6 forks source link

feat: basic implementation of the syncBack #9

Closed matskiv closed 2 years ago

matskiv commented 2 years ago

I got the syncBack somewhat working - it will create a synced back resource when it is created in the host, and it will create it when the "parent" object is updated with the new value (e.g. .spec.secretName changes to reference different secret, which already exists, so the Secret watch would not be triggered, but the name cache hook will trigger it instead).

While fixing one issue with the Patches in Sync() I sort of broke it, so we need to fix that :sweat: I'll highlight the two next steps with a review comment.