Skip to content

Commit ba35de7

Browse files
committed
Allow empty namespace to watch all namespaces.
1 parent 29031ee commit ba35de7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/util/k8sutil/k8sutil.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,5 @@ func GetWatchNamespace() (string, error) {
142142
if !found {
143143
return "", fmt.Errorf("%s must be set", WatchNamespaceEnvVar)
144144
}
145-
if len(ns) == 0 {
146-
return "", fmt.Errorf("%s must not be empty", WatchNamespaceEnvVar)
147-
}
148145
return ns, nil
149146
}

0 commit comments

Comments
 (0)