Skip to content

Commit

Permalink
When user can't list return empty (#360)
Browse files Browse the repository at this point in the history
When user can't list return empty instead of exiting
  • Loading branch information
yonahd authored Sep 18, 2024
1 parent a5f8816 commit 3d63b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/filters/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (o *Options) Namespaces(clientset kubernetes.Interface) []string {
namespaceList, err := clientset.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{})
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to retrieve namespaces: %v\n", err)
os.Exit(1)
return
}

for _, ns := range namespaceList.Items {
Expand Down

0 comments on commit 3d63b69

Please sign in to comment.