src.internal.utils module#
This module contains utility functions that are used throughout the project.
- src.internal.utils.camel_case_to_snake_case(string: str) str [source]#
Converts a string from camel case to snake case.
- Parameters:
string (str) – Camel case string
- Returns:
Snake case string
- Return type:
str
- src.internal.utils.k8s_safe_name(string: str) str [source]#
Converts a string to a k8s safe name.
A k8s safe name can only contain alphanum chars and hyphens, be lower case and names cannot start with hyphens. Should also be <63 characters long
- Parameters:
string (str) – Input string
- Returns:
Output string
- Return type:
str