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.
delete_namespace
1 parent 196eb48 commit 5475d34Copy full SHA for 5475d34
src/warnet/k8s.py
@@ -142,9 +142,10 @@ def apply_kubernetes_yaml_obj(yaml_obj: str) -> None:
142
Path(temp_file_path).unlink()
143
144
145
-def delete_namespace(namespace: str) -> bool:
146
- command = f"kubectl delete namespace {namespace} --ignore-not-found"
147
- return run_command(command)
+def delete_namespace(namespace: str) -> V1Status:
+ v1: CoreV1Api = get_static_client()
+ resp = v1.delete_namespace(namespace)
148
+ return resp
149
150
151
def delete_pod(pod_name: str) -> bool:
0 commit comments