mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
fix: make WatchResourceTree use namespaced cache key (#15258)
* fix: make WatchResourceTree use namespaced application cache key Signed-off-by: Torbjørn Fjørtoft <torbjorn.fjortoft@pgs.com> * chore: add PGS to USERS.md Signed-off-by: Torbjørn Fjørtoft <torbjorn.fjortoft@pgs.com> --------- Signed-off-by: Torbjørn Fjørtoft <torbjorn.fjortoft@pgs.com>
This commit is contained in:
parent
ef24b3f858
commit
d557be4dd2
2 changed files with 4 additions and 2 deletions
1
USERS.md
1
USERS.md
|
|
@ -205,6 +205,7 @@ Currently, the following organizations are **officially** using Argo CD:
|
|||
1. [Patreon](https://www.patreon.com/)
|
||||
1. [PayPay](https://paypay.ne.jp/)
|
||||
1. [Peloton Interactive](https://www.onepeloton.com/)
|
||||
1. [PGS](https://www.pgs.com)
|
||||
1. [Pigment](https://www.gopigment.com/)
|
||||
1. [Pipefy](https://www.pipefy.com/)
|
||||
1. [Pismo](https://pismo.io/)
|
||||
|
|
|
|||
|
|
@ -1399,9 +1399,10 @@ func (s *Server) WatchResourceTree(q *application.ResourcesQuery, ws application
|
|||
return err
|
||||
}
|
||||
|
||||
return s.cache.OnAppResourcesTreeChanged(ws.Context(), q.GetApplicationName(), func() error {
|
||||
cacheKey := argo.AppInstanceName(q.GetApplicationName(), q.GetAppNamespace(), s.ns)
|
||||
return s.cache.OnAppResourcesTreeChanged(ws.Context(), cacheKey, func() error {
|
||||
var tree appv1.ApplicationTree
|
||||
err := s.cache.GetAppResourcesTree(q.GetApplicationName(), &tree)
|
||||
err := s.cache.GetAppResourcesTree(cacheKey, &tree)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error getting app resource tree: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue