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

When editing List + Git Matrix Generator, deployed namespace is not cleared.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • ACM 2.16.0
    • Console
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • ACM Console Train 37 - 1
    • Low
    • None

      Description of problem:

      When editing a List + Git to List and any other generator, the deployed namespace does not get cleared.

      Version-Release number of selected component (if applicable):

      latest-2.16 - feb 12

      How reproducible:

      Always

      Steps to Reproduce:

      1. Go to appset push model wizard.
      2. Go to generators tab.
      3. Fill in details for List + Git with Listbeing the first...
      4. Delete Git generator
      5. Add another generator

      Actual results:

      example:

      Placement tab is not visible.
      YAML editor is updated with the correct YAML.
      
      apiVersion: argoproj.io/v1alpha1
      kind: ApplicationSet
      metadata:
        name: app-matrix
        namespace: openshift-gitops
      spec:
        generators:
          - matrix:
              generators:
                - list:
                    elements:
                      - cluster: engineering-dev
                        url: https://kubernetes.default.svc
                      - cluster: test
                        url: https://kubernetes.default.svc
                - list:
                    elements:
                      - cluster: engineering-dev1
                        url: https://kubernetes.default.svc
                      - cluster: test1
                        url: https://kubernetes.default.svc
        template:
          metadata:
            name: app-matrix-{{.cluster}}
            labels:
              velero.io/exclude-from-backup: "true"
          spec:
            project: default
            sources:
              - repositoryType: git
                repoURL: https://github.com/stolostron/application-lifecycle-samples.git
                targetRevision: main
                path: helloworld-argo
            destination:
              namespace: "{{path.basename}}" <------ this part
              server: "{{.url}}"
            syncPolicy:
              automated:
                enabled: true
                selfHeal: true
                prune: true
              syncOptions:
                - CreateNamespace=true
                - PruneLast=true 

       

      Expected results:

      destination:         
        namespace: ""         
        server: "{{.url}}"  

      Additional info:

      workaround is just to type it in the yaml or fill it in in the repo tab

              jswanke@redhat.com John Swanke
              rh-ee-almng Almen Ng
              David Huynh David Huynh
              ACM QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: