-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
ArgoCD doesn't respect application.namespaces #11116
Comments
No, it doesn't. Mentioned issue is about the namespace of resources from
Application's source but my issue is about the namespace which the
Application.argoproj.io resides in - the new feature comming from this pull
request: #9755 (I edited the issue
while ago).
út 1. 11. 2022 v 15:26 odesílatel Ryan Umstead ***@***.***>
napsal:
… Duplicate of #8386 <#8386>?
Relevant docs
<https://github.com/argoproj/argo-cd/blob/9353328eb8ae7357538146269d41aa692d99c4cf/docs/operator-manual/application.yaml#L123>
—
Reply to this email directly, view it on GitHub
<#11116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEHL4DQG7M3UD3GFRZ4XIDWGESB5ANCNFSM6AAAAAARSSLXPQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Got exactly the same bug. I also tried to scope the default appproject to the defined namespaces just in case. It did not work and I am in the same situation as @mrysavy |
same problem |
We are experiencing the same problem. I'm not that well at home in the argocd source, but my best guess is that this bit of code is setting the status on the argocd.argoproj.io/applcation that it shouldn't touch: argo-cd/controller/appcontroller.go Line 1870 in 82f006c
I traced the error message I'm seeing in the status.conditions field from the source in the code, and this place seems to just set the condition field but not the health field, which another bit of code does do, so that's my guess. Doesn't explain why it's also popping up in the UI. I'm guessing that's because the update process somehow triggers a push to the UI (stream/applications api?). |
Checklist:
argocd version
.Describe the bug
I tried to use application namespaces (#9755) but there are problems in multi-argocd-instances environments. Problem is that neither application-controller nor server respects specified application namespaces.
There are two problems with argocd instance with application namespaces:
server
displaysApplication
resources from all namespaces (not only from the argocd home namespace and allowed namespaces usingARGOCD_APPLICATION_NAMESPACES
env or--application-namespaces
argument)note: argocd server UI displays unwanted Applications only when there is a change on them and refreshing UI these ones go away, but this is very confusing
Application
resource in any namespace (independent of "application namespaces" setting)application-controller
decorate foreignApplication
resources belonging to another argocd instance withUnknownError
with message likeapplication 'helm-guestbook' in namespace 'argocd1' is not permitted to use project 'default'
To Reproduce
argocd1
without "application namespaces" andargocd2
withdefault
as "application namespace"default
namespace forargocd2
AppProjectdefault
kubectl patch -n argocd2 appproject/default --type merge -p '{"spec": {"sourceNamespaces": ["default"]}}'
Application
resources in namespaces:argocd1
(forargocd1
instance),argocd2
(forargocd2
instance) anddefault
(also forargocd2
instance as an application namespace)Now all three applications is accessible from both instances (tried with both argocd contexts):
Application
argocd1/helm-guestbook
(which belongs toargocd1
instance) has error fromargocd2
application controller
(which has nothing to do with it).Stopping
argocd2
application-controller
and refreshing the application this error disappearsExpected behavior
I would expect following:
argocd
CLI displays only "own" application, i.e.Application
resources only from its "home" namespace or "application namespaces"argocd-server
GUI displays only "own" application, i.e.Application
resources only from its "home" namespace or "application namespaces"argocd-application-controller
ignores foreignApplication
resources, i.e. application from namespaces other than "home" namespace or "application namespaces"Version
The text was updated successfully, but these errors were encountered: