@staticmethod
def sanitize_k8s_name(name):
    'From _make_kubernetes_name\n      sanitize_k8s_name cleans and converts the names in the workflow.\n    '
    return re.sub('-+', '-', re.sub('[^-0-9a-z]+', '-', name.lower())).lstrip('-').rstrip('-')
From _make_kubernetes_name
sanitize_k8s_name cleans and converts the names in the workflow.
@staticmethod
def sanitize_k8s_name(name):
    'From _make_kubernetes_name\n      sanitize_k8s_name cleans and converts the names in the workflow.\n    '
    return re.sub('-+', '-', re.sub('[^-0-9a-z]+', '-', name.lower())).lstrip('-').rstrip('-')