-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OwnerReference to inline resources #1317
Comments
The fact that owner references are not injected, is intentional behavior. It is why we provide the |
This makes sense, but I don't think executing extra commands to delete child resources is not intuitive. Maybe, we can add an option to set |
@dtaniwaki, are you aware of this technique? This is how we have instructed users to GC resources with a workflow thus far. It can potentially be simplified with a flag in the resource template (e.g. |
I didn't know it. |
Great. I'm good with the |
Implemented in #1333. |
Signed-off-by: Windfarer <windfarer@gmail.com>
Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
What happened:
I'd like to clean up all the resources I make in a workflow when the workflow is deleted. However, as
OwnerReference
is not set in the created resources by the inline resource manifest, it's not easy to clean them up.What you expected to happen:
Set
OwnerReference
in created resources by inline resource manifests.How to reproduce it (as minimally and precisely as possible):
Run the example of
examples/k8s-jobs.yaml
and see theOwnerReference
of the created job. It's empty.Anything else we need to know?:
Environment:
Other debugging information (if applicable):
N/A
The text was updated successfully, but these errors were encountered: