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

Namespaced resources owned by clusterscoped resources don't show up in the UI. #7733

Open
empath-nirvana opened this issue Nov 17, 2021 · 5 comments · May be fixed by #8222
Open

Namespaced resources owned by clusterscoped resources don't show up in the UI. #7733

empath-nirvana opened this issue Nov 17, 2021 · 5 comments · May be fixed by #8222
Assignees
Labels
bug Something isn't working

Comments

@empath-nirvana
Copy link

empath-nirvana commented Nov 17, 2021

  • [ x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [ x] I've included steps to reproduce the bug.
  • [ x] I've pasted the output of argocd version.

Describe the bug

Namespaced resources owned by clusterscoped resources don't show up in the UI.

To Reproduce

Sync a cluster scoped resource using argocd, then create a namespaced resource separately and make the cluster-scoped resource the owner of the namespaced resource -- refresh the app, the child resource does not show up. I tested this with service accounts owned by a role and clusterrole, and the one owned by the role showed up, but not the one owned by the cluster role -- this came up in practice with crossplane where most of the resources it manages are cluster scoped but it makes namespaced child resources.

Expected behavior

Namespaced child resources of clusterscoped objects should show up in the ui.

Version

argocd: v2.0.3+8d2b13d.dirty
  BuildDate: 2021-05-27T19:03:20Z
  GitCommit: 8d2b13d733e1dff7d1ad2c110ed31be4804406e2
  GitTreeState: dirty
  GoVersion: go1.16.4
  Compiler: gc
  Platform: darwin/amd64
WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web.
argocd-server: v2.1.2+7af9dfb
  BuildDate: 2021-09-02T18:05:23Z
  GitCommit: 7af9dfb3524c13e941ab604e36e49a617fe47d2e
  GitTreeState: clean
  GoVersion: go1.16.5
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: v0.13.1
  Kustomize Version: v4.2.0 2021-06-30T22:49:26Z
  Helm Version: v3.6.0+g7f2df64
  Kubectl Version: v0.21.0
  Jsonnet Version: v0.17.0

Logs

Paste any relevant application logs here.
@empath-nirvana empath-nirvana added the bug Something isn't working label Nov 17, 2021
@alexmt alexmt added this to the v2.3 milestone Nov 17, 2021
@alexmt
Copy link
Collaborator

alexmt commented Nov 17, 2021

Confirmed. Bug is reproducible in the latest argocd version (v2.2.0-rc1)

@tekenstam
Copy link

I saw the same issue when using KubeVela with Argo CD. KubeVela's Application CR creates a ResourceTracker which is cluster-scoped. Any resources that sets ownerReferences to the ResourceTracker will not be displayed in the Argo CD UI.

@empath-nirvana
Copy link
Author

empath-nirvana commented Nov 18, 2021

I'm interested in trying to fix this, does anyone know where the relevant code would be to get started?

Edit: I actually think the issue might be in the gitops engine, after poking around in the code trying to trace things, but I'm at a loss as to how to fix it.

@redradrat
Copy link

@empath-nirvana we already started the discussion here :)
#7655

@woehrl01
Copy link
Contributor

@crenshaw-dev it would be awesome if this PR could make it to 2.10 🙏. The upstream PR looks ready.

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
7 participants