argocd-operator icon indicating copy to clipboard operation
argocd-operator copied to clipboard

Add support for application namespaces

Open tongpu opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. In https://github.com/argoproj/argo-cd/pull/9755 Argo CD gained support for pulling in Application from outside of the namespace Argo CD is being deployed.

Describe the solution you'd like As this feature will be added to Argo CD 2.5 I would be happy if argocd-operator would be able to support this parameter.

tongpu avatar Sep 27 '22 15:09 tongpu

@ishitasequeira is already working on this one. Thanks for raising the enhancement @tongpu

iam-veeramalla avatar Oct 11 '22 12:10 iam-veeramalla

If there is spec.controller.extraCommandArgs, this config would work:

apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
  name: example-argocd
  labels:
    example: server
spec:
  resourceTrackingMethod: annotation+label
  controller:
   # Does not exists 
    extraCommandArgs:
      - '--application-namespaces=*'
  server:
    extraCommandArgs:
      - '--application-namespaces=*'

This will allow the user to use new features before they are supported by the operator.

I also see --application-namespaces is generated from spec.sourceNamespaces, but setting it to ["*"] will cause this error when reconciling Role(?):

1.6831749006287725e+09	ERROR	controller.argocd	Reconciler error	{"reconciler group": "argoproj.io", "reconciler kind": "ArgoCD", "name": "app", "namespace": "argocd", "error": "Namespace \"*\" not found"}

My current workaround is to disable the operator...

Gentoli avatar May 04 '23 05:05 Gentoli

is there any news here? :)

timurgaleev avatar Feb 29 '24 08:02 timurgaleev