Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to create Argocd Applications CR within the namespace of the user (= selected within the template) #39

Open
cmoulliard opened this issue Feb 12, 2024 · 1 comment

Comments

@cmoulliard
Copy link
Collaborator

cmoulliard commented Feb 12, 2024

Issue

We cannot create an Application CR in an namespace which is not the one operated by the Argocd CD controller/server
I see such error message if I try to create the application using the argocd console

Unable to create application: error while validating and normalizing app: 
error getting application's project: application 'my-quarkus-app-bootstrap-test' in namespace 'cmoullia' 
is not allowed to use project 'default'

Note: OpenShift GitOps operator has been installed cluster's scoped (=> all namespaces) BUT if I deploy an Application CR under another NS => demo, then nothing happens. I cannot even see the Application CR created within the console

@cmoulliard
Copy link
Collaborator Author

cmoulliard commented Feb 12, 2024

See documentation about how to support such a feature:

2 changes are needed.

A. Patch the ArgoCD CR to add the following parameter

sourceNamespaces: 
   - qshift
   - cmoulia
   - iocanel 

Note: As soon you will save the ArgoCD CR, the controller will rollout the ArgoCD Server

B. Create or update the default - AppProject CR to include .spec.sourceNamespaces: '*'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant