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

Remove hard-coded local-cluster from App lifecycle UI components

XMLWordPrintable

    • 5
    • False
    • None
    • False
    • Hide

      Provide the required acceptance criteria using this template.
      * ...
      Show
      Provide the required acceptance criteria using this template. * ...
    • ACM-1290 - [RFE] Be able to rename local-cluster
    • Workload Mgmt Train 21 - 1, Workload Mgmt Train 21 - 2
    • None

      Value Statement

      local-cluster can be renamed by customers so in the App UI code we cannot assume it will always have the name local-cluster.

      Definition of Done for Engineering Story Owner (Checklist)

      • ...

      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.

       

      How to test renaming local-cluster scenario

      1. start mce with this CR to disable local clsuter

      apiVersion: multicluster.openshift.io/v1
      kind: MultiClusterEngine
      metadata:
        name: multiclusterengine
      spec:
        availabilityConfig: High
        imagePullSecret: open-cluster-management-image-pull-credentials
       overrides:
          components:
            - enabled: false
              name: local-cluster
        targetNamespace: multicluster-engine
        tolerations:
          - effect: NoSchedule
            key: node-role.kubernetes.io/infra
            operator: Exists

      2. when mce is started, create managed cluster with "local-cluster=true" label

      apiVersion: cluster.open-cluster-management.io/v1
      kind: ManagedCluster
      metadata:
        name: test-cluster
        labels:
          local-cluster: "true"
      spec:
        hubAcceptsClient: true

      3. Deploy an application, App UI should work properly.

              fxiang@redhat.com Feng Xiang
              fxiang@redhat.com Feng Xiang
              Ruici Hong Ruici Hong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: