Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-4256

Add a webhook to validate clusterDeployment deletion of hosting clusters

XMLWordPrintable

      Value Statement

      In hypershift use case, the hypershift hosting(management) clusters are created by OCM hive. currently, if we destroy a hosting cluster that is hosting some other hyeprshift hosted cluster, the control plane of these hosted clusters would also be destroyed, but the infrastructure of these hosted clusters would remain. Add a webhook to validate clusterDeployment deletion of hosting clusters can prevent it from happening.

      Definition of Done for Engineering Story Owner (Checklist)

      When the hypershift addon is available on the hosting cluster:

      • [x] Managed cluster of the hosting cluster can not be deleted if it is hosting a hypershift hosted control plane
      • [x] Cluster deployment of the hosting cluster can not be deleted before it is detached from the hub

      Development Complete

      • The code is complete.
      • Functionality is working.
      • Any required downstream Docker file changes are made.

      Tests Automated

      • [x] Unit/function tests have been automated and incorporated into the
        build.
      • [x] 100% automated unit/function test coverage for new or changed APIs.

      Secure Design

      • [x] Security has been assessed and incorporated into your threat model.

      Multidisciplinary Teams Readiness

      Support Readiness

      • [x] The must-gather script has been updated.

            jiazhu@redhat.com Jian Zhu
            jiazhu@redhat.com Jian Zhu
            Song Lai Song Lai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: