Closed jmendesky closed 4 months ago
/assign @ji-yaqi
Hi @jmendesky, is there any impact of this missing metadata that we should be aware of?
Hi @jmendesky, is there any impact of this missing metadata that we should be aware of?
@ji-yaqi we use this metadata in our automation which reacts to finished pipeline runs. This automation is currently broken. In general, I think this inconsistency can lead to more potential problems to more users if they rely on this metadata being present.
Is there any update on this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.
Environment
Kustomize
1.3.0 - but the same behaviour is present in current versions
1.8.10
Steps to reproduce
.metadata
of the resulting Argo WorkflowsExample created as a single Pipeline run:
Example created by a recurring run:
You can see that the workflow for the recurring run has an entirely new set of labels and no annotations. Specifically, the compiled argo workflow contains
pipelines.kubeflow.org/*
fields which get removed for the scheduled run.Expected result
Both workflows should have the same common metadata - most importantly labels and annotations. We use these fields for automation after a pipeline has finshed.
Materials and Reference
After some investigation I found out that the
ScheduledWorkflow
CRD doesn't contain a metadata field: https://github.com/kubeflow/pipelines/blob/master/backend/src/apiserver/template/argo_template.go#L92 and https://github.com/kubeflow/pipelines/blob/master/backend/src/crd/pkg/apis/scheduledworkflow/v1beta1/types.go#L48and that the original Workflow's Spec gets copied without its metadata: https://github.com/kubeflow/pipelines/blob/master/backend/src/crd/controller/scheduledworkflow/util/scheduled_workflow.go#L164
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.