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.
k8s
1 parent 1fa3073 commit 9e4c096Copy full SHA for 9e4c096
src/warnet/k8s.py
@@ -1,9 +1,9 @@
1
import json
2
import os
3
-import sys
4
import tempfile
5
from pathlib import Path
6
from time import sleep
+from typing import Optional
7
8
import yaml
9
from kubernetes import client, config, watch
@@ -12,9 +12,8 @@
12
from kubernetes.client.rest import ApiException
13
from kubernetes.dynamic import DynamicClient
14
from kubernetes.stream import stream
15
+from kubernetes.utils import create_from_yaml
16
-from .constants import DEFAULT_NAMESPACE, KUBECONFIG
17
-from .process import run_command, stream_command
18
from .constants import KUBECONFIG
19
20
0 commit comments