argo-workflows
argo-workflows copied to clipboard
Finalizer for kubernetes resources created by a workflow
Summary
I want to make sure that kubernetes resource created by a workflow is deleted when workflow fails or is deleted. Currently using onExit doesn't guarantee that. I can run kubectl delete workflow
Probably related to https://github.com/argoproj/argo-workflows/issues/7860
Use Cases
I want to make sure that SparkApplications (that use a lot of resources) started by a Workflow die with a Workflow.
Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
Use resource template and specify ownerReference.
@terrytangyuan This doesn't work with SparkApplications (https://github.com/GoogleCloudPlatform/spark-on-k8s-operator). When setOwnerReference is set on resource of SparkApplication type SparkApplication stops working correctly.