support watch namespaces matched namespace selector (#7472)

skip caching namespaces at cluster scope if only watching single namespace

add --watch-namespace-selector in user guide

add e2e test
This commit is contained in:
zryfish 2021-11-13 03:46:28 +08:00 committed by GitHub
parent 67e13bf692
commit 7203a0b8bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 461 additions and 19 deletions

View file

@ -59,6 +59,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -59,6 +59,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -59,6 +59,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -60,6 +60,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -59,6 +59,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -59,6 +59,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch

View file

@ -60,6 +60,7 @@ rules:
- nodes
- pods
- secrets
- namespaces
verbs:
- list
- watch