"ownerReferences" consideration while deleting objects. #648
Replies: 3 comments
-
I think this validation makes sense, period. We are ostensibly watching
Calling delete on an object will cascade deletion to its child objects by default, so Results shouldn't need to do anything regarding cleanup. And if the thing that deletes an object uses the |
Beta Was this translation helpful? Give feedback.
-
The issue is that we then have completed I don't see the value with keeping the Also, I don't think the Tekton Pipelines pruner care about ownerReferences when pruning, so we have a change of behavior when going from the default pruner to Tekton-Results. I'd rather there be an option to skip resources with ownerReferences that is set to |
Beta Was this translation helpful? Give feedback.
-
There seems to be an agreement in the Working Group call to:
|
Beta Was this translation helpful? Give feedback.
-
In the present implementation of the reconciler, we are checking the
ownerReferences
while deleting an object from the cluster.results/pkg/watcher/reconciler/dynamic/dynamic.go
Lines 185 to 187 in 6e51562
Added from #255
While the intention specifies that those objects with
ownerReferences
are to be managed by the owner itself, but is there any value in keeping the object in the cluster even after it executed successfully and stored in results?There are cases where other controllers will add
ownerReferences
for it purpose without knowing that TektonResults will ignore them, and they'll live in the cluster until deleted manually.I suggest, if we need to keep this validation, we can keep it by default, and allow this behaviour to be altered with config parameters.
Beta Was this translation helpful? Give feedback.
All reactions