Skip to content

Commit e54ed80

Browse files
committed
k8s: add a K8sError
I figure we should add an error type for the k8s file, that way we can try...except everything from that file using just one error type.
1 parent 2e0de6b commit e54ed80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/warnet/k8s.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
)
2424

2525

26+
class K8sError(Exception):
27+
pass
28+
29+
2630
def get_static_client() -> CoreV1Api:
2731
config.load_kube_config(config_file=KUBECONFIG)
2832
return client.CoreV1Api()

0 commit comments

Comments
 (0)