Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Set OwnerReferences on resources created using the spec of submarine custom resources so that:
- When submarine custom resource is deleted, those resources will be deleted even when operator is not running
- We can check whether the resources are created from the spec of submarine or not
References:
- https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta
- https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L388-L403
- https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L289-L293
Attachments
Issue Links
- is a child of
-
SUBMARINE-827 Implement other features as in sample-controller
- Resolved
- links to