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 6a48a64 commit 627c7d9Copy full SHA for 627c7d9
src/warnet/k8s.py
@@ -18,6 +18,7 @@
18
CADDY_INGRESS_NAME,
19
DEFAULT_NAMESPACE,
20
INGRESS_NAMESPACE,
21
+ KUBE_INTERNAL_NAMESPACES,
22
KUBECONFIG,
23
LOGGING_NAMESPACE,
24
)
@@ -370,7 +371,11 @@ def get_kubeconfig_value(jsonpath):
370
371
def get_namespaces() -> list[V1Namespace]:
372
sclient = get_static_client()
373
try:
- return sclient.list_namespace().items
374
+ return [
375
+ ns
376
+ for ns in sclient.list_namespace().items
377
+ if ns.metadata.name not in KUBE_INTERNAL_NAMESPACES
378
+ ]
379
380
except ApiException as e:
381
if e.status == 403:
0 commit comments