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

When editing Git + List Matrix Generator, server is not cleared/updated.

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
    • Low
    • None

      Description of problem:

      When editing a Git + List to Git + any other generator, the server would remain .url instead of reverting back to server.

      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 Git + List with Git being the first...
      4. Delete List generator
      5. Add another generator

      Actual results:

      example:

       

      apiVersion: argoproj.io/v1alpha1
      kind: ApplicationSet
      metadata:
        name: app-matrix
        namespace: openshift-gitops
      spec:
        generators:
          - matrix:
              generators:
                - git:
                    requeueAfterSeconds: 180
                    repoURL: https://github.com/argoproj/argo-cd.git
                    directories:
                      - path: applicationset/examples/git-generator-directory/cluster-addons/*
                    revision: HEAD
                - plugin:
                    configMapRef:
                      name: my-plugin
                    input:
                      parameters:
                        key1: value1
                        key2: value2
                        list:
                          - list
                          - of
                          - values
                        boolean: true
                    values:
                      value1: something
                    requeueAfterSeconds: 180
        template:
          metadata:
            name: app-matrix-{{name}}-{{path.basename}}
            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}}"
              server: "{{.url}}"  <----- this part
            syncPolicy:
              automated:
                enabled: true
                selfHeal: true
                prune: true
              syncOptions:
                - CreateNamespace=true
                - PruneLast=true 

       

      Expected results:

      destination:         
        namespace: "{{path.basename}}"         
        server: "{{server}}"  

      Additional info:

      workaround is just to type it in the yaml editor

              rh-ee-kcormier Kevin Cormier
              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: