@@ -252,7 +252,7 @@ def wait_for_inference_deployment_replicas(
252252 exceptions_dict = DEFAULT_CLUSTER_RETRY_EXCEPTIONS ,
253253 func = Deployment .get ,
254254 label_selector = label_selector ,
255- dyn_client = client ,
255+ client = client ,
256256 namespace = ns ,
257257 ):
258258 deployment_list = list (deployments )
@@ -535,7 +535,7 @@ def get_services_by_isvc_label(
535535 if svcs := [
536536 svc
537537 for svc in Service .get (
538- dyn_client = client ,
538+ client = client ,
539539 namespace = isvc .namespace ,
540540 label_selector = label_selector ,
541541 )
@@ -562,7 +562,7 @@ def get_pods_by_ig_label(client: DynamicClient, ig: InferenceGraph) -> list[Pod]
562562 if pods := [
563563 pod
564564 for pod in Pod .get (
565- dyn_client = client ,
565+ client = client ,
566566 namespace = ig .namespace ,
567567 label_selector = label_selector ,
568568 )
@@ -592,7 +592,7 @@ def get_pods_by_isvc_label(client: DynamicClient, isvc: InferenceService, runtim
592592 if pods := [
593593 pod
594594 for pod in Pod .get (
595- dyn_client = client ,
595+ client = client ,
596596 namespace = isvc .namespace ,
597597 label_selector = label_selector ,
598598 )
@@ -687,7 +687,7 @@ def get_model_route(client: DynamicClient, isvc: InferenceService) -> Route:
687687 if routes := [
688688 route
689689 for route in Route .get (
690- dyn_client = client ,
690+ client = client ,
691691 namespace = isvc .namespace ,
692692 label_selector = f"inferenceservice-name={ isvc .name } " ,
693693 )
@@ -869,7 +869,7 @@ def get_product_version(admin_client: DynamicClient) -> Version:
869869
870870 """
871871 operator_version : str = ""
872- for csv in ClusterServiceVersion .get (dyn_client = admin_client , namespace = py_config ["applications_namespace" ]):
872+ for csv in ClusterServiceVersion .get (client = admin_client , namespace = py_config ["applications_namespace" ]):
873873 if re .match ("rhods|opendatahub" , csv .name ):
874874 operator_version = csv .instance .spec .version
875875 break
@@ -981,7 +981,7 @@ def wait_for_serverless_pods_deletion(resource: Project | Namespace, admin_clien
981981
982982 """
983983 client = admin_client or get_client ()
984- for pod in Pod .get (dyn_client = client , namespace = resource .name ):
984+ for pod in Pod .get (client = client , namespace = resource .name ):
985985 try :
986986 if (
987987 pod .exists
@@ -1020,7 +1020,7 @@ def wait_for_isvc_pods(client: DynamicClient, isvc: InferenceService, runtime_na
10201020
10211021
10221022def get_rhods_subscription () -> Subscription | None :
1023- subscriptions = Subscription .get (dyn_client = get_client (), namespace = RHOAI_OPERATOR_NAMESPACE )
1023+ subscriptions = Subscription .get (client = get_client (), namespace = RHOAI_OPERATOR_NAMESPACE )
10241024 if subscriptions :
10251025 for subscription in subscriptions :
10261026 LOGGER .info (f"Checking subscription { subscription .name } " )
0 commit comments