We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01b293b commit f9eec7cCopy full SHA for f9eec7c
src/warnet/k8s.py
@@ -17,6 +17,7 @@
17
CADDY_INGRESS_NAME,
18
DEFAULT_NAMESPACE,
19
INGRESS_NAMESPACE,
20
+ KUBE_INTERNAL_NAMESPACES,
21
KUBECONFIG,
22
LOGGING_NAMESPACE,
23
)
@@ -360,7 +361,11 @@ def get_kubeconfig_value(jsonpath):
360
361
def get_namespaces() -> list[V1Namespace]:
362
sclient = get_static_client()
363
try:
- return sclient.list_namespace().items
364
+ return [
365
+ ns
366
+ for ns in sclient.list_namespace().items
367
+ if ns.metadata.name not in KUBE_INTERNAL_NAMESPACES
368
+ ]
369
370
except ApiException as e:
371
if e.status == 403:
0 commit comments