You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArgoCD tries to use cluster scoped k8s api's to list "application" while using a namespaced installation
To Reproduce
kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1kind: Kustomizationresources:
- ns.yaml
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.12.8/manifests/namespace-install.yaml # also is the case with v2.13.2
- rbac.yamlpatches:
- target:
name: argocd-cmd-params-cmkind: ConfigMappatch: |- - op: add path: /data value: application.namespaces: app1
ns.yaml
# Only included to show intention, not required for reproducing the issueapiVersion: v1kind: Namespacemetadata:
name: app1
rbac.yaml
# Only included to show intention, not required for reproducing the issueapiVersion: rbac.authorization.k8s.io/v1kind: Rolemetadata:
name: argocd-rolenamespace: app1rules:
- apiGroups:
- '*'resources:
- '*'verbs:
- '*'
---
apiVersion: rbac.authorization.k8s.io/v1kind: RoleBindingmetadata:
name: argocd-role-bindingnamespace: app1subjects:
- kind: ServiceAccountname: argocd-application-controllernamespace: app1
- kind: ServiceAccountname: argocd-servernamespace: app1roleRef:
kind: Rolename: argocd-roleapiGroup: rbac.authorization.k8s.io
** Expected **
No usage of cluster scoped list commands at all.
Logs
time="2024-12-18T07:24:06Z" level=info msg="ArgoCD Application Controller is starting" built="2024-12-11T18:39:59Z" commit=9c3b45f5da0b1cdf516e87b2c0f3aa1c21473642 namespace=default version=v2.12.8+9c3b45f
time="2024-12-18T07:24:06Z" level=info msg="Processing all cluster shards"
time="2024-12-18T07:24:06Z" level=info msg="Processing all cluster shards"
time="2024-12-18T07:24:06Z" level=info msg="appResyncPeriod=3m0s, appHardResyncPeriod=0s, appResyncJitter=0s"
time="2024-12-18T07:24:06Z" level=info msg="Starting configmap/secret informers"
W1218 07:24:06.151244 7 reflector.go:539] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: failed to list *v1alpha1.Application: applications.argoproj.io is forbidden: User "system:serviceaccount:default:argocd-application-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope E1218 07:24:06.151321 7 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1alpha1.Application: failed to list *v1alpha1.Application: applications.argoproj.io is forbidden: User "system:serviceaccount:default:argocd-application-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope time="2024-12-18T07:24:06Z" level=info msg="Configmap/secret informer synced" time="2024-12-18T07:24:06Z" level=warning msg="The cluster https://kubernetes.default.svc has no assigned shard." time="2024-12-18T07:24:06Z" level=warning msg="Cannot init sharding. Error while querying application list from database: applications.argoproj.io is forbidden: User \"system:serviceaccount:default:argocd-application-controller\" cannot list resource \"applications\" in API group \"argoproj.io\" at the cluster scope" time="2024-12-18T07:24:06Z" level=warning msg="Failed to save cluster info: dial tcp 10.43.74.157:6379: connect: connection refused" W1218 07:24:07.522990 7 reflector.go:539] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: failed to list *v1alpha1.Application: applications.argoproj.io is forbidden: User "system:serviceaccount:default:argocd-application-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope E1218 07:24:07.523073 7 reflector.go:147] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1alpha1.Application: failed to list *v1alpha1.Application: applications.argoproj.io is forbidden: User "system:serviceaccount:default:argocd-application-controller" cannot list resource "applications" in API group "argoproj.io" at the cluster scope
The text was updated successfully, but these errors were encountered:
Checklist:
argocd version
.ArgoCD tries to use cluster scoped k8s api's to list "application" while using a namespaced installation
To Reproduce
kustomization.yaml
ns.yaml
rbac.yaml
** Expected **
No usage of cluster scoped list commands at all.
Logs
The text was updated successfully, but these errors were encountered: