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
| Name | Type | Description |
|---|---|---|
| flyteRunPolicy | *kfplugins.RunPolicy | The Flyte Kubeflow plugin RunPolicy object containing the desired policy configurations. |
Returns
| Type | Description |
|---|---|
kubeflowv1.RunPolicy | The Kubernetes RunPolicy object, populated with values from the Flyte RunPolicy. |