Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-830

Set OwnerReferences on resources

    XMLWordPrintableJSON

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:

      1. When submarine custom resource is deleted, those resources will be deleted even when operator is not running
      2. We can check whether the resources are created from the spec of submarine or not

      References:

      1. https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta
      2. https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L388-L403
      3. https://github.com/kubernetes/sample-controller/blob/73e81dab82c945b087f7db1f1f4a7b50e7d92751/controller.go#L289-L293

      Attachments

        Issue Links

          Activity

            People

              MortalHappiness Chi-Sheng Liu
              MortalHappiness Chi-Sheng Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: