wave-k8s / wave

Kubernetes configuration tracking controller
Apache License 2.0
649 stars 82 forks source link

Implement removal of Owner references from child objects #9

Closed JoelSpeed closed 5 years ago

JoelSpeed commented 5 years ago

Added another test for this method.

Also realised while implementing this that we need to pass objects around rather than metav1.Objects, so I moved everything to passing round our object type.

The object type is just an interface wrapping metav1.Object and runtime.Object meaning we can use it to access all the metadata we need and also send updates to the API using the Client provided by controller-runtime

JoelSpeed commented 5 years ago

Remove owner references from Configmaps/Secrets if Deployment deleted