-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Patch request should update resource to indicate patch operation is in progress #109490
Comments
@muang0: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig sig-api-machinery |
@muang0: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig api-machinery |
/remove-sig api-machinery this isn't specific to patch requests, but to update requests in general, relative to the status reported by the controller |
A patch API request is written atomically... there's no persisted "in progress" intermediate state for a patch API request |
specifically for StatefulSet, is |
Thanks for the quick response Jordan! A generational readiness check should solve the issue we're facing. Currently helm only checks the number of replicas and their readiness status. Thanks again for the help! |
What happened?
A 'patch' request to a statefulset doesn't update the resource status (this doesn't happen until the associated k8s controller picks up the change and performs an 'update'). Because of this, we're encountering a race condition between helm and the k8s statefulset controller during installs. Helm checks the resource status to determine readiness after applying the patch, which can happen before the k8s controller has the chance to update the statefulset status. When a 'patch' request is handled, there should be some update on the resource status that indicates a patch operation is in progress. Unfortunately I can't share logs because this is something I am encountering in my cluster at work (highly restrictive fintech).
Associated issue opened to helm here
What did you expect to happen?
A 'patch' request should also update the resource status (when applicable).
How can we reproduce it (as minimally and precisely as possible)?
NA, this is a potential design bug with how 'patch' requests are handled
Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
NA
Install tools
Container runtime (CRI) and version (if applicable)
NA
Related plugins (CNI, CSI, ...) and versions (if applicable)
NA
The text was updated successfully, but these errors were encountered: