Skip to content
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

Setting PropagationPolicy #52

Closed
YoungFaithful opened this issue Apr 8, 2022 · 2 comments
Closed

Setting PropagationPolicy #52

YoungFaithful opened this issue Apr 8, 2022 · 2 comments

Comments

@YoungFaithful
Copy link

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
Copy link

maxstb commented Jun 10, 2022

Facing the same issue. A solution to this would be great!!

@tanmaykm
Copy link
Member

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"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants