Skip to content

Commit 3273e0f

Browse files
committed
revert created utils
Signed-off-by: mahdikhashan <[email protected]>
1 parent 195a3d9 commit 3273e0f

File tree

1 file changed

+0
-10
lines changed
  • sdk/python/v1beta1/kubeflow/katib/utils

1 file changed

+0
-10
lines changed

sdk/python/v1beta1/kubeflow/katib/utils/utils.py

-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import json
1818
import logging
1919
import os
20-
import re
2120
import textwrap
2221
from typing import Any, Callable, Dict, List, Optional, Union
2322

@@ -268,12 +267,3 @@ def get_exec_script_from_objective(
268267

269268
# Return executable script to execute objective function.
270269
return exec_script
271-
272-
273-
def is_valid_pvc_name(name: str) -> bool:
274-
# RFC 1123 regex for valid PVC names: lowercase alphanumeric, '-', or '.'.
275-
return bool(
276-
re.match(
277-
r"^[a-z0-9]([a-z0-9\-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9\-]*[a-z0-9])?)*$", name
278-
)
279-
)

0 commit comments

Comments
 (0)