Skip to content

Commit f89ed51

Browse files
committed
remove k8s
1 parent c0a8751 commit f89ed51

File tree

8 files changed

+0
-446
lines changed

8 files changed

+0
-446
lines changed

app/http/api/dashboard.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import re
1212
from slurm import slurm_auth
1313
import logging
14-
from k8s.client import client
15-
from k8s.nodestat import KubeResources
1614

1715
INVALID_STATUS = ["DOWN", "DRAINED", "FAIL", "FAILING", "INVAL", "UNKNOWN", "NOT_RESPONDING"]
1816
pattern = r"\d+"
@@ -107,9 +105,3 @@ def get_hpc_cluster(request: Request):
107105
result["workloads"] = jobStates
108106
result['workingSates'] = workingSates
109107
return result
110-
111-
112-
@router.get("/k8s")
113-
def get_k8s_cluster(request: Request):
114-
resource = KubeResources(client.CoreV1Api())
115-
return resource.getClusterUsage()

app/http/api/nodes.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/http/api/workloads.py

Lines changed: 0 additions & 212 deletions
This file was deleted.

k8s/__init__.py

Whitespace-only changes.

k8s/client.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)