Skip to content

Commit 83150cb

Browse files
committed
fixup! fix: List no resources when source namespace is empty string
Return nil slice
1 parent 74c9cf7 commit 83150cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/namespacesync/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (r *Reconciler) listSourceClusterClasses(
153153
// Handle the empty string explicitly, because listing resources with an empty
154154
// string namespace returns resources in all namespaces.
155155
if r.SourceClusterClassNamespace == "" {
156-
return []clusterv1.ClusterClass{}, nil
156+
return nil, nil
157157
}
158158

159159
ccl := &clusterv1.ClusterClassList{}

0 commit comments

Comments
 (0)