Skip to main content

ParseRunPolicy

ParseRunPolicy converts a kubeflow plugin RunPolicy object to a k8s RunPolicy object.

def ParseRunPolicy(
flyteRunPolicy: *kfplugins.RunPolicy
) - > kubeflowv1.RunPolicy

Converts a Kubeflow plugin RunPolicy object to a Kubernetes RunPolicy object. This function is used to translate Flyte's representation of a run policy into the format expected by Kubernetes.

Parameters

NameTypeDescription
flyteRunPolicy*kfplugins.RunPolicyThe Flyte Kubeflow plugin RunPolicy object containing the desired policy configurations.

Returns

TypeDescription
kubeflowv1.RunPolicyThe Kubernetes RunPolicy object, populated with values from the Flyte RunPolicy.