--include-namespaces=kube-system does not overwrite the default exclusion
CookieComputing opened this issue · 2 comments
CookieComputing commented
If I run --include-namespaces=kube-system
without explicitly changes --exclude-namespaces
, kube-janitor
does not overwrite the exclusion. Is this by design, or should this be a change?
hjacobs commented
This is by design, I think "excludes" should have precedence (for safety reasons) --- you basically limit the namespaces by specifying --include-namespaces
as the default is "all" (same as --include-namespaces=all
). I would recommend that you only change --exclude-namespaces
if you want to include kube-system
(and all other namespaces).