Ensure generated objects are kept in sync #12
Labels
2 - Infra Services
Relates to infrastructure services generated by SIP
bug
Something isn't working
priority/low
Items that are considered non-critical for functionality, such as quality of life improvements
size m
Milestone
Describe the bug
Any objects generated by a controller should be:
The controller-runtime has an API which can be used to accomplish both of these pretty easily:
https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil#SetControllerReference
Prior to #5 we had 1. in place, since we created a standalone namespace for each SIPCluster for service resources to be created in, so when the SIPCluster was deleted we could simply delete that namespace. Now that we are creating service objects in the SIPCluster CR namespace, we should be deleting those objects each individually (as opposed to the whole namespace) when the SIPCluster is deleted.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: