Setting `PropagationPolicy`
YoungFaithful opened this issue · 2 comments
YoungFaithful commented
We face the issue that deleting a Job does not delete the containing Pods.
We'd like to set the propagationPolicy
to "Background"
. It seems that propagationPolicy
is implemented in the ApiImpl
, but I was not able to find a solution to set this Parameter by applying it to the ctx.client
or so. What would be a possible way to do so?
maxstb commented
Facing the same issue. A solution to this would be great!!
tanmaykm commented
The delete!
APIs take additional keyword args that can be passed to the API. So something like this should work:
julia> delete!(ctx, job; propagationPolicy="Background")
{
"kind": "Status",
"metadata": {},
"apiVersion": "v1",
"status": "Success",
"details": {
"kind": "jobs",
"group": "batch",
"name": "testjob",
"uid": "50dcebb3-111c-4cf6-95c2-346b3d4e8ae3"
}
}