diff --git a/utils/chaos_ai/docker/requirements.txt b/utils/chaos_ai/docker/requirements.txt index 2a9f0074..ba610d86 100644 --- a/utils/chaos_ai/docker/requirements.txt +++ b/utils/chaos_ai/docker/requirements.txt @@ -1,7 +1,8 @@ -numpy -pandas -requests +numpy==2.0.0 +pandas==2.2.2 +requests==2.32.3 Flask==2.2.5 Werkzeug==3.0.3 flasgger==0.9.5 -kubernetes +kubernetes==30.1.0 +urllib3==2.2.3 diff --git a/utils/chaos_ai/src/utils.py b/utils/chaos_ai/src/utils.py index 2ee5c41d..6955616d 100644 --- a/utils/chaos_ai/src/utils.py +++ b/utils/chaos_ai/src/utils.py @@ -1,4 +1,6 @@ import re + +import urllib3 from kubernetes import client, config from kubernetes.client.rest import ApiException @@ -27,7 +29,7 @@ def is_cluster_accessible(kubeconfig_path: str) -> bool: return False def get_namespace_pods(namespaces: str, kubeconfig_path: str): - ns_list = namespaces.splt(",") + ns_list = namespaces.split(",") ns_pods = {} for ns in ns_list: pods = get_pod_labels(ns, kubeconfig_path)