-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix(server): appset list uses argocd's namespace instead of all (#15429) #15432
Conversation
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL at #15429 (comment)
… monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Hi @jannfis |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #15432 +/- ##
==========================================
- Coverage 49.69% 49.69% -0.01%
==========================================
Files 267 267
Lines 46362 46363 +1
==========================================
Hits 23039 23039
- Misses 21063 21064 +1
Partials 2260 2260
☔ View full report in Codecov by Sentry. |
This needs documentation and a release notes item. |
About the documentation, there isn't any new feature to document, this is a fix for the RBAC issue. I mean, we can add it as a feature, but the idea was to fix the bug in the RBAC for appsets. Could you point me to the correct place to update it? I'll try to do it (if you'd give me an example, it would be nice) I have followed as well the PR template and I haven't seen anything about the release notes, could you point me to there too? |
So, here's the upgrade docs for 2.7 to 2.8: https://argo-cd.readthedocs.io/en/stable/operator-manual/upgrading/2.7-2.8/
A breaking change should be listed in upgrading as a call out to anyone upgrading. Fwiw, Support dropped for argocd-cm plugins is a breaking change, it doesn't have to use the word that content was originally introduced in #12707, although it was since moved... |
No no, this isn't a breaking change at all, let me summarize the things:
My question about the docs was because as this isn't a breaking change and the UX hasn't changed (because I have just fixed a bug), I don't know where I should document it. The links sent are for migration path, but this isn't something for a migration, it's just a bugfix |
If the RBAC behavior is different before/after, surely that's a breaking change -- someone with a certain set of configurations will see different behavior before/after, no? (I'm on slack, and I suspect this'd be easier to discuss there... -- I might need a picture -- sorry) |
Sure, write me (Jorge Turrado on CNCF/Kubernetes workspaces) or give me your handle and I'll do it 😄 |
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JorTurFer I approved the PR but we have a failure to the generated code. Can you fix that?
The code LGTM!!
Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
I have just updated the generated code, I didn't notice that it was autogenerated code and I changed it manually 🤦 |
I don't know how to solve the current issue. I updated the manifest with the pending changes, but now it shows other error and I don't know how to solve it. Locally I execute |
The issue has gone automagically just rebasing the branch xd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JorTurFer! LGTM!
times are a changing
/cherry-pick release-2.9 |
…) (#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Let's start by introducing this fix just in 2.9. If it behaves, and if people ask for it, we can pick it further back. |
…) (#15432) (#16203) * fix(server): appset list uses argocd's namespace instead of all * use lister to scope the observed namespaces based on which namespaces monitors for apps * apply feedback * add missing change 🤦 * update generated manifests --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Co-authored-by: Jorge Turrado Ferrero <jorge.turrado@scrm.lidl>
We are using v2.8 😢 |
v2.9 hasn't been released yet :( |
…proj#15429) (argoproj#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: jmilic1 <70441727+jmilic1@users.noreply.github.com>
…proj#15429) (argoproj#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
…proj#15429) (argoproj#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
…proj#15429) (argoproj#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Kevin Lyda <kevin@lyda.ie>
I suspect this PR for new warning logs:
We disable applicationSet, and seeing every minute these messages since we upgrade from 2.8 to 2.10. |
What do you mean with |
ApplicationSet is optional, we use official argocd helm chart from: Maybe the CRD should be always installed ! |
oh, interesting. I don't think that this PR is the root cause, as this PR changed the global listing with namespace listing, so the problem is previous to this PR. Before this PR the applicationsets were already readed from the cluster |
…proj#15429) (argoproj#15432) * fix(server): appset list uses argocd's namespace instead of all Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * use lister to scope the observed namespaces based on which namespaces monitors for apps Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * add missing change 🤦 Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update generated manifests Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
As it's explained on #15429, current appset listing implementation is using all namespaces instead of default namespace when the namespace isn't explicitly provided. This PR adds a check following other functions with in the same file to ensure that in case of not explicitly setting the namespace, argocd's namespace is used and not a global query is done (if a global query is the expected behaviour, the RBAC must be update to allow it accordingly).
Checklist:
Fixes #15429