Skip to content

Commit

Permalink
Make request to get csv files with less namespaces scope.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <[email protected]>
  • Loading branch information
AndrienkoAleksandr committed Nov 1, 2021
1 parent e0193de commit 1c99861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/deploy/dev-workspace/dev_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ func IsDevWorkspaceOperatorCSVExists(deployContext *deploy.DeployContext) bool {
}

csvList := &operatorsv1alpha1.ClusterServiceVersionList{}
// Namespace: deploy.DefaultNamespaceForAllNamespacesMode
err := deployContext.ClusterAPI.Client.List(context.TODO(), csvList, &client.ListOptions{})
err := deployContext.ClusterAPI.Client.List(context.TODO(), csvList, &client.ListOptions{Namespace: deploy.DefaultNamespaceForAllNamespacesMode})
if err != nil {
return false
}
Expand Down

0 comments on commit 1c99861

Please sign in to comment.