Skip to content

Commit 502afba

Browse files
committed
fix: docstring and move comment
1 parent 16b280a commit 502afba

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

utilities/infra.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def create_ns(
6060
"""
6161
Create namespace with admin or unprivileged client.
6262
63+
For a namespace / project which contains Serverless ISVC, there is a workaround for RHOAIENG-19969.
64+
Currently, when Serverless ISVC is deleted and the namespace is deleted, namespace "SomeResourcesRemain" is True.
65+
This is because the serverless pods are not immediately deleted resulting in prolonged namespace deletion.
66+
Waiting for the pod(s) to be deleted before cleanup, eliminates the issue.
67+
6368
Args:
6469
name (str): namespace name.
6570
Can be overwritten by `request.param["name"]`
@@ -704,11 +709,7 @@ def get_operator_distribution(client: DynamicClient, dsc_name: str = "default-ds
704709

705710
def wait_for_serverless_pods_deletion(resource: Project | Namespace, admin_client: DynamicClient | None) -> None:
706711
"""
707-
Wait for serverless pods deletion before namespace deletion.
708-
709-
This is a workaround for RHOAIENG-19969.
710-
Currently, when Serverless ISVC is deleted and the namespace is deleted, namespace "SomeResourcesRemain" is True.
711-
This is because the serverless pods are not immediately deleted resulting in prolonged namespace deletion.
712+
Wait for serverless pods deletion.
712713
713714
Args:
714715
resource (Project | Namespace): project or namespace

0 commit comments

Comments
 (0)