You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Chi-Sheng Liu (Jira)" <ji...@apache.org> on 2021/05/30 19:01:00 UTC

[jira] [Resolved] (SUBMARINE-830) Set OwnerReferences on resources

     [ https://issues.apache.org/jira/browse/SUBMARINE-830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chi-Sheng Liu resolved SUBMARINE-830.
-------------------------------------
    Resolution: Fixed

> Set OwnerReferences on resources
> --------------------------------
>
>                 Key: SUBMARINE-830
>                 URL: https://issues.apache.org/jira/browse/SUBMARINE-830
>             Project: Apache Submarine
>          Issue Type: New Feature
>            Reporter: Chi-Sheng Liu
>            Assignee: Chi-Sheng Liu
>            Priority: Major
>              Labels: pull-request-available
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org