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

Application in namespace is not permitted to use project #11597

Closed
sebolabs opened this issue Dec 7, 2022 · 5 comments
Closed

Application in namespace is not permitted to use project #11597

sebolabs opened this issue Dec 7, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@sebolabs
Copy link

sebolabs commented Dec 7, 2022

Describe the bug
First of all, I'm not explicitly saying it's a bug.
I did my best, read the docs, and tried to ask on forums but received no help hence I'm raising this issue.
I might be simply missing something and can't figure it out.

I've been trying to deploy an app to a namespace called test-hello-world within my custom project project-test.

In the argocd-cmd-params-cm ConfigMap I've got this:

{
    "apiVersion": "v1",
    "data": {
        "application.namespaces": "test-*",

For the project I've got the following configured with wildcards (*):

  • source repos
  • destinations
  • cluster resource allow list
  • namespace resource allow list

It's not working!
And I'm getting the following error message:

application 'test-hello-world' in namespace 'test-hello-world' is not permitted to use project 'project-test'

Note: when I change the namespace to argocd it works, obviously.

To Reproduce

See above.

Expected behavior

The app should be successfully deployed.

Screenshots

N/A

Version

v2.5.3+0c7de21

Logs

N/A

@sebolabs sebolabs added the bug Something isn't working label Dec 7, 2022
@crenshaw-dev
Copy link
Collaborator

I think you need to add this to the project-test AppProject:

sourceNamespaces:
- test-*

@sebolabs
Copy link
Author

sebolabs commented Dec 7, 2022

LOL, yet another hidden configuration option for admins only - invisible from the UI.

It worked! Thank you! It's not over yet though :)

Here's what I've got:
A top level app: my-app - URL path: /applications/argocd/my-app with a nested app: test-hello-world.
When I click the Open application link, from the my-app view, on the test-hello-world application tile it takes me to the following URL path: /applications/test-hello-world, and I'm getting the following error:

Unable to load data: error getting application: applications.argoproj.io "test-hello-world" not found

That's because that app belongs to the test-hello-world namespace so the correct URL path should be /applications/test-hello-world/test-hello-world. When I go there I get the correct view.

@crenshaw-dev
Copy link
Collaborator

yet another hidden configuration option for admins only - invisible from the UI.

Well, every configuration option in AppProject is admin-only, because AppProject update access effectively == admin access. Lack of UI support is its own problem. :-)

That's because that app belongs to the test-hello-world namespace so the correct URL path should be /applications/test-hello-world/test-hello-world

Yep, that's a known issue, being tracked here.

@sebolabs
Copy link
Author

sebolabs commented Dec 7, 2022

Alright, I get that :)

I'm glad the Open application issue is known and looking forward to getting it resolved soon.
Closing this one here. Thanks again for your help!!

@kopax-polyconseil
Copy link

I use default AppProject, and I have this error also. do you know how to solve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants