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

MCH: Ensure that the MCH webhook validates deletion only if the local-cluster is correctly labeled and named

XMLWordPrintable

    • Installer Sprint 2025-59
    • None

      Value Statement

      In ACM, we will prevent the deletion of the MCH CR if multiple ManagedClusters exist. With support for custom local-cluster names, we must ensure the webhook functions correctly by validating deletions. To achieve this, we will verify the cluster name and check for the presence of the local-cluster=true label.

      Definition of Done for Engineering Story Owner (Checklist)

      • [ ] The MCH webhook successfully validates the presence of a configured local-cluster name in the MCH CR.
      • [ ] The MCH webhook correctly handles deletion if the local-cluster name is present and matches the configured value.
      • [ ] Appropriate error messages are generated if validation fails or if the deletion criteria are not met.

      Development Complete

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

      Tests Automated

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

      Secure Design

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

      Multidisciplinary Teams Readiness

      • [ ] Create an informative documentation issue using the Customer

      Portal Doc template that you can access from [The Playbook](

      https://docs.google.com/document/d/1YTqpZRH54Bnn4WJ2nZmjaCoiRtqmrc2w6DdQxe_yLZ8/edit#heading=h.9fvyr2rdriby),

      and ensure doc acceptance criteria is met.

      • Call out this sentence as it's own action:
      • [ ] Link the development issue to the doc issue.

      Support Readiness

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

              rh-ee-ngraham Nathaniel Graham
              dbennett@redhat.com Disaiah Bennett
              Matthew Smigielski Matthew Smigielski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: