There is a new release of controller-runtime, v0.5.1, that contains a couple of features which look like they are potentially of interest to us:
controllerutil.SetOwnerReference in particular is of interest as we are currently using controllerutil.SetControllerReference to set non-controller OwnerRefs which is a slight misuse of the function. The webhook support in envtest should help us improve our tests to just be local.
Note: there is a dependabot PR that contains the bump to v0.5.1, #24.
There is a new release of controller-runtime, v0.5.1, that contains a couple of features which look like they are potentially of interest to us:
Add controllerutil.SetOwnerReferenceWebhook support in envtestcontrollerutil.SetOwnerReferencein particular is of interest as we are currently usingcontrollerutil.SetControllerReferenceto set non-controller OwnerRefs which is a slight misuse of the function. The webhook support inenvtestshould help us improve our tests to just be local.Note: there is a dependabot PR that contains the bump to v0.5.1, #24.