Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-1520

Can't set up cluster scoped argocd instances via environment variable

    XMLWordPrintable

Details

    • 3
    • False
    • False
    • GITOPS Sprint 213

    Description

      openshift-gitops-operator.v1.3.0

      [Issue]
      Tried the following below configuration to set cluster scoped argoCD instance where Enabled dex authentication and disabled the default argoCD instance and it is working fine but the cluster-config parameter[ARGOCD_CLUSTER_CONFIG_NAMESPACES] isn't applied to the operator's deployment by the operator.

      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: openshift-gitops-operator
        namespace: openshift-operators
       config:
          env:
          - name: DISABLE_DEX
            value: "false"
          - name: DISABLE_DEFAULT_ARGOCD_INSTANCE
            value: "true"
          - name: ARGOCD_CLUSTER_CONFIG_NAMESPACES
            value: openshift-gitops, operations-argocd
      

      Workaround suggested by jfischer@redhat.com:
      workaround is to put the env vars in alphabetical orders in the subscription
      Eg:

        config:
          env:
          - name: ARGOCD_CLUSTER_CONFIG_NAMESPACES
            value: openshift-gitops, operations-argocd
          - name: DISABLE_DEFAULT_ARGOCD_INSTANCE
            value: "true"
          - name: DISABLE_DEX
            value: "false"
      

      Attachments

        Activity

          People

            yicai@redhat.com Yi Cai
            rhn-support-naygupta Nayantara Gupta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: