-
Notifications
You must be signed in to change notification settings - Fork 183
Allow setting deleteOptions.orphanDependents=false #105
Comments
Hi jcassee, were you able to find a way around this? I'm looking for exactly the same functionality. I have tried using the HTTP client object but still can't get it to work. Thanks |
Unfortunately, no... |
I was able to get it to work following the documentation from https://kubernetes.io/docs/api-reference/v1/definitions/ starting at v1.DeleteOptions
I am using the pykube HTTP Client to actually send a delete request instead of calling the delete method for a particular APIObject. In my case, I am retrieving a replication controller by its name, building a new dictionary with extra parameters including parameters from the replication controller and including that data when calling the delete method from the pykube. HTTP Client |
Nice! I am impressed that you were able to get to these internals and manipulate the request. It's unfortunate that you had to, of course... I will try this as well. |
In order to automatically delete (for example) pods created by a deployment,
deleteOptions.orphanDependents
must be set tofalse
. I see no way of doing that in pykube at the moment?See also http://kubernetes.io/docs/user-guide/garbage-collection/
The text was updated successfully, but these errors were encountered: