Skip to content

Commit d36d745

Browse files
committed
DEFAULT_NAMESPACE: set it to "default"
1 parent b27bbc2 commit d36d745

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/warnet/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
tag for index, tag in enumerate(reversed(SUPPORTED_TAGS)) for _ in range(index + 1)
1212
]
1313

14-
DEFAULT_NAMESPACE = "warnet"
14+
DEFAULT_NAMESPACE = "default"
1515
LOGGING_NAMESPACE = "warnet-logging"
1616
INGRESS_NAMESPACE = "ingress"
1717
HELM_COMMAND = "helm upgrade --install --create-namespace"

src/warnet/k8s.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from .constants import (
1919
CADDY_INGRESS_NAME,
20+
DEFAULT_NAMESPACE,
2021
INGRESS_NAMESPACE,
2122
KUBECONFIG,
2223
LOGGING_NAMESPACE,
@@ -171,8 +172,7 @@ def get_default_namespace() -> str:
171172
except K8sError as e:
172173
raise K8sError(f"Could not get context entry for {KUBECONFIG}") from e
173174

174-
# TODO: need to settle on Warnet's "default" namespace
175-
namespace = context_entry["context"].get("namespace", "warnet")
175+
namespace = context_entry["context"].get("namespace", DEFAULT_NAMESPACE)
176176

177177
return namespace
178178

0 commit comments

Comments
 (0)