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

Some resources' live manifests can't be viewed in the UI since server cluster role lacks list permission #18853

Open
3 tasks done
andrii-korotkov-verkada opened this issue Jun 29, 2024 · 2 comments
Labels
bug Something isn't working component:rbac Issues related to Openshift and Racher component:server type:bug

Comments

@andrii-korotkov-verkada
Copy link
Contributor

andrii-korotkov-verkada commented Jun 29, 2024

Checklist:

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

Describe the bug

Some resources' live manifests would show that resource not found, despite it's there in the cluster. For example

apiVersion: karpenter.sh/v1beta1
kind: NodePool

I've validated that adding list permission to the server via

- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - delete
  - get
  - list
  - patch

works, whereas existing one looks like

- apiGroups:
  - '*'
  resources:
  - '*'
  verbs:
  - delete
  - get
  - patch

So apparently get is not enough.

To Reproduce

Create resources

apiVersion: karpenter.sh/v1beta1
kind: NodePool

and try to view their live manifest in the UI

Expected behavior

Live manifest is viewable in the UI

Screenshots

Screenshot 2024-06-29 at 8 59 23 AM
After the update
Screenshot 2024-06-29 at 8 59 37 AM

Version

A custom build from master + #18694 around the time of v2.12.0-rc1 release.

Logs

@andrii-korotkov-verkada andrii-korotkov-verkada added the bug Something isn't working label Jun 29, 2024
@andrii-korotkov-verkada andrii-korotkov-verkada changed the title Some resources' live manifests can't be viewed in the UI since repo server cluster role lacks list permission Some resources' live manifests can't be viewed in the UI since server cluster role lacks list permission Jun 29, 2024
@agaudreault
Copy link
Member

Does this happen to all resources or only Nodepool? Are you able to find the reason why it is requiring List? I cannot find a reference in the code using list. Maybe it is something caused by the new Kubernetes version?

obj, err := s.kubectl.GetResource(ctx, config, res.GroupKindVersion(), res.Name, res.Namespace)

@agaudreault agaudreault added component:rbac Issues related to Openshift and Racher component:server labels Jul 4, 2024
@alexmt alexmt added the type:bug label Jul 4, 2024
@andrii-korotkov-verkada
Copy link
Contributor Author

I can't tell for sure, since the error message is shown like resource not found, which also can happen due to stale UI. I don't yet know why it requires list for NodePool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:rbac Issues related to Openshift and Racher component:server type:bug
Projects
None yet
Development

No branches or pull requests

3 participants