Skip to content

Commit fa4ea18

Browse files
authored
Merge pull request #298 from andersjanmyr/support_for_watching_all_namespaces
Allow empty namespace to watch all namespaces.
2 parents 2ff32f1 + ba35de7 commit fa4ea18

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
@@ -155,9 +155,6 @@ func GetWatchNamespace() (string, error) {
155155
if !found {
156156
return "", fmt.Errorf("%s must be set", WatchNamespaceEnvVar)
157157
}
158-
if len(ns) == 0 {
159-
return "", fmt.Errorf("%s must not be empty", WatchNamespaceEnvVar)
160-
}
161158
return ns, nil
162159
}
163160

0 commit comments

Comments
 (0)