-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failed to Update Deployment #11492
Comments
/assign |
I think this is expected in that the deployment quite frequently changes and there might be cases where we try to update it, but on a stale copy. It'll fix itself though. Not sure if patching is a good idea, especially since we're going to have probably have to use the old |
yeah, It'll fix itself later indeed,Maybe it’s okay to continue to use |
/close |
@zhaojizhuang: Closing this issue. 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. |
@zhaojizhuang @markusthoemmes I'm seeing this error quite often in my usage of Knative Serving, and it never fixes itself later. Any ideas what could be causing this? I don't believe I have anything running that would modify the deployment.
K8s version: 1.24 |
@CharlieC3 is there anything mutating that deployment besides the Knative controller? |
@dprotaso I don't believe so, we have Istio installed which would only modify pods, and a couple other pretty common webhooks for modifying other resources, but nothing that would modify deployments besides Knative itself. |
What version of Knative?
Expected Behavior
Actual Behavior
failed to update deployment, the object has been modified; please apply your changes to the latest version and try again
log as follows:
we should use
Patch()
instead ofUpdate()
https://github.com/knative/serving/blob/main/pkg/reconciler/revision/cruds.go#L77
The text was updated successfully, but these errors were encountered: