Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update persistent agence to only store the argo spec (#1634)
* update persistent agence to only store the argo spec Currently when persisting the runs spawned from a job, PersistentAgent stores more information than needed into the pipeline manifest, and also miss the TypeMetadata. This resulted in storing lots of runtime information that's not needed. Example WorkflowSpec ``` "metadata":{ "name":"fffpw4fh-2-2911767673", "namespace":"kubeflow", "selfLink":"/apis/argoproj.io/v1alpha1/namespaces/kubeflow/workflows/fffpw4fh-2-2911767673", "uid":"de23bd5c-a8c1-11e9-a176-42010a800233", "resourceVersion":"3975687", "generation":1, "creationTimestamp":"2019-07-17T18:37:02Z", "labels":{ "scheduledworkflows.kubeflow.org/isOwnedByScheduledWorkflow":"true", "scheduledworkflows.kubeflow.org/scheduledWorkflowName":"fffpw4fh", "scheduledworkflows.kubeflow.org/workflowEpoch":"1563388612", "scheduledworkflows.kubeflow.org/workflowIndex":"2", "workflows.argoproj.io/phase":"Running" }, "ownerReferences":[ { "apiVersion":"kubeflow.org/v1beta1", "kind":"ScheduledWorkflow", "name":"fffpw4fh", "uid":"91039a28-a8c1-11e9-a176-42010a800233", "controller":true, "blockOwnerDeletion":true } ] }, ``` * Update workflow_test.go * Update workflow.go * Update resource_manager_test.go * Update resource_manager.go * Update workflow_test.go
- Loading branch information