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

Failed to load initial state of resource #937

Open
shraddhabp opened this issue Jun 16, 2023 · 1 comment
Open

Failed to load initial state of resource #937

shraddhabp opened this issue Jun 16, 2023 · 1 comment

Comments

@shraddhabp
Copy link

shraddhabp commented Jun 16, 2023

Describe the bug
After install ArgoCD using Operator on Openshift, Application and Cluster show errors for many such resources and the namespace added in the cluster
failed to sync cluster https://172.21.0.1:443: failed to load initial state of resource Service: services is forbidden: User "system:serviceaccount:gm4c-devops-factory:argocd-gm4c-argocd-application-controller" cannot list resource "services" in API group "" in the namespace "dev"

To Reproduce
Steps to reproduce the behavior:

  1. Install the latest version of ArgoCD Operator in a single Namespace on OpenShift
  2. Creat an instance of ArgoCD using the steps given here-
  3. https://argocd-operator.readthedocs.io/en/latest/usage/basics/
  4. Once the instance is Available, set the spec:server: route: enabled: true
  5. Access ArgoCD on the Route created.
  6. Login to the ArgoCD using admin
  7. Add namespace dev to the in-cluster
  8. Add Git repository
  9. Create an application, choose namespace dev
  10. Application shows multiple error messages as in the screenshot
  11. Cluster shows error as in the screenshot

Expected behavior
The application should not show errors.
The Cluster should show a connected status

Screenshots
image
image

Additional context
the below log is for many such resources and namespaces
failed to sync cluster https://172.21.0.1:443: failed to load initial state of resource DaemonSet.apps: daemonsets.apps is forbidden: User "system:serviceaccount:gm4c-devops-factory:argocd-gm4c-argocd-application-controller" cannot list resource "daemonsets" in API group "apps" in the namespace "dev"

We want to use ArgoCD for deploying only on a few Namespaces of OpenShift

@yyzxw
Copy link

yyzxw commented Oct 19, 2023

+1

image

and many errors : watch failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants