[backend] ScheduledWorkflow doesn't have any OwnerReferences
Closed this issue · 3 comments
hbelmiro commented
Accordingly to
a
ScheduledWorkflow
should have an OwnerReference
, but it hasn't.
$ kubectl get swf runoftutorialdsl-controlsdfgnv -oyaml | yq .metadata
creationTimestamp: "2024-10-07T13:29:00Z"
generateName: runoftutorialdsl-controls
generation: 4
labels:
scheduledworkflows.kubeflow.org/enabled: "true"
scheduledworkflows.kubeflow.org/status: Enabled
name: runoftutorialdsl-controlsdfgnv
namespace: kubeflow
resourceVersion: "2102"
uid: ed294fef-1339-4a08-bb3d-1d27b054375f
Steps to reproduce
- Schedule a pipeline using cron: 0 */10 * * * *
- Set to end in one hour
- Check the
.metadata.OwnerReferences
of the createdScheduledWorkflow
.
oc get swf ${SWF_NAME} -oyaml | yq .metadata.ownerReferences
Expected result
It should return at least one OwnerReference
. But it returns null
.
Impacted by this bug? Give it a 👍.
HumairAK commented
I'm guessing this means SWF are not being cleaned up when jobs are deleted. Not great.