Skip to content

Commit

Permalink
revert created utils
Browse files Browse the repository at this point in the history
Signed-off-by: mahdikhashan <[email protected]>
  • Loading branch information
mahdikhashan committed Jan 27, 2025
1 parent 516b4b5 commit 651b231
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sdk/python/v1beta1/kubeflow/katib/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import json
import logging
import os
import re
import textwrap
from typing import Any, Callable, Dict, List, Optional, Union

Expand Down Expand Up @@ -268,12 +267,3 @@ def get_exec_script_from_objective(

# Return executable script to execute objective function.
return exec_script


def is_valid_pvc_name(name: str) -> bool:
# RFC 1123 regex for valid PVC names: lowercase alphanumeric, '-', or '.'.
return bool(
re.match(
r"^[a-z0-9]([a-z0-9\-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9\-]*[a-z0-9])?)*$", name
)
)

0 comments on commit 651b231

Please sign in to comment.