-
Notifications
You must be signed in to change notification settings - Fork 168
Add ability to patch status of an object #422
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
Nice. 2 small concerns:
|
BTW, are these really adding functionality vs doing patch on the whole object only touching I suspect the API has |
An alternative could be to not provide these [for now] as generated method names, first as generic method taking the kind of object as parameter. That is, implement at least patch part of generic methods #332, plus status variants. (Or maybe same method abusing Don't take this as hard pushback, I'm looking for your opinion, but I also know we want a #332 layer anyway so I'm interested in nudging people in that direction 😉 BTW, kubeclient is generally lacking about If you have any broader vision how to support sub-resources, please write 👍 |
Hi, @cben, I appreciate fast turnaround reviewing this PR and thank you for maintaining such a critical open-source project. To be honest, this was a quick and dirty change I needed to make in order to benefit from custom Pod conditions (trying to fill in some gaps in Kubernetes inability to run slow jobs without interruptions during auto-scaling and deployments). Unfortunately, I was not able to use the regular |
Oh i now remembered there is a starightforward way to add full set of operations on these |
Sorry, I effectively blocked this by saying "there is a better way" but never implementing it :-| Are in interested in tackling the general approach yourself?
Alternatively, please ping me periodically 😉 |
This is required to patch status right? Trying to update a single status field by re-POSTING the entire resource doesn't seem to actually change the field in the status. |
|
No description provided.