예제 #1
0
def annotate_trial(name,
                   namespace,
                   annotations,
                   api_version=KATIB_API_VERSION_V1BETA1):
    """Add annotations to a Trial."""
    k8sutils.annotate_object(KATIB_API_GROUP, api_version, KATIB_TRIALS_PLURAL,
                             name, namespace, annotations)
예제 #2
0
def annotate_workflow(name, namespace, annotations):
    """Annotate a workflow."""
    k8sutils.annotate_object(ARGO_API_GROUP, ARGO_API_VERSION,
                             ARGO_WORKFLOWS_PLURAL, name, namespace,
                             annotations)
예제 #3
0
def annotate_trial(name, namespace, annotations):
    """Add annotations to a Trial."""
    k8sutils.annotate_object(KATIB_API_GROUP, KATIB_API_VERSION,
                             KATIB_TRIALS_PLURAL, name, namespace, annotations)