hjacobs/kube-janitor

--include-namespaces=kube-system does not overwrite the default exclusion

CookieComputing opened this issue · 2 comments

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?

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).

I think we should make this behaviour more clear in the README, see #16