Skip to content

Commit 3bc0cfd

Browse files
committed
k8s: use default namespace in apply fn
1 parent d36d745 commit 3bc0cfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/warnet/k8s.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,11 @@ def get_default_namespace() -> str:
178178

179179

180180
def apply_kubernetes_yaml(yaml_file: str) -> bool:
181+
namespace = get_default_namespace()
181182
v1 = get_static_client()
182183
path = os.path.abspath(yaml_file)
183184
try:
184-
create_from_yaml(v1, path)
185+
create_from_yaml(v1, path, namespace=namespace)
185186
return True
186187
except Exception as e:
187188
raise e

0 commit comments

Comments
 (0)