diff --git a/cmd/argocd-server/commands/argocd_server.go b/cmd/argocd-server/commands/argocd_server.go index 3de5d517e7d23..56bc73db87c48 100644 --- a/cmd/argocd-server/commands/argocd_server.go +++ b/cmd/argocd-server/commands/argocd_server.go @@ -163,6 +163,7 @@ func NewCommand() *cobra.Command { controllerClient, err := client.New(config, client.Options{Scheme: scheme}) errors.CheckError(err) controllerClient = client.NewDryRunClient(controllerClient) + controllerClient = client.NewNamespacedClient(controllerClient, namespace) // Load CA information to use for validating connections to the // repository server, if strict TLS validation was requested. diff --git a/manifests/cluster-rbac/server/argocd-server-clusterrole.yaml b/manifests/cluster-rbac/server/argocd-server-clusterrole.yaml index 3ee074622c15c..b33820950fcb6 100644 --- a/manifests/cluster-rbac/server/argocd-server-clusterrole.yaml +++ b/manifests/cluster-rbac/server/argocd-server-clusterrole.yaml @@ -15,7 +15,6 @@ rules: - delete # supports deletion a live object in UI - get # supports viewing live object manifest in UI - patch # supports `argocd app patch` - - list # supports `argocd appset generate` with cluster generator - apiGroups: - "" resources: diff --git a/manifests/ha/install.yaml b/manifests/ha/install.yaml index 27c6dad079abf..39805ad50ed0f 100644 --- a/manifests/ha/install.yaml +++ b/manifests/ha/install.yaml @@ -22776,7 +22776,6 @@ rules: - delete - get - patch - - list - apiGroups: - "" resources: diff --git a/manifests/install.yaml b/manifests/install.yaml index cb0091139af2c..a16a28168205d 100644 --- a/manifests/install.yaml +++ b/manifests/install.yaml @@ -22743,7 +22743,6 @@ rules: - delete - get - patch - - list - apiGroups: - "" resources: