Linkerd 2.12.0 failing to create applicable manifest with inject #10512
-
What is the issue?I am running Microk8s which uses Linkerd v2.12.0. I am trying to get the deployments saved as a file, injecting into the file, then applying them again with kubectl. This is failing. For example, I get the error "Operation cannot be fulfilled on statefulsets.apps "keycloak-postgresql": the object has been modified; please apply your changes to the latest version and try again." How can it be reproduced?Run Microk8s (or theoretically any K8 distro), and try to inject Linkerd via a file, then applying it to the cluster. Logs, error output, etc
output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is likely an issue with the files are being created, rather than injecting Linkerd related. The error you're seeing |
Beta Was this translation helpful? Give feedback.
-
Yep. I am able to fix it by removing the resourceVersion. I removed all other fields and it is absolutely the only one causing the issue. I thought that Linkerd, when injecting into a manifest file, sanitized the file. |
Beta Was this translation helpful? Give feedback.
This is likely an issue with the files are being created, rather than injecting Linkerd related. The error you're seeing
Operation cannot be fulfilled on ...: the object has been modified
is shown when trying to apply manifests that have autogenerated fields such ascreationTimestamp
,resourceVersion
, etc. I'd make sure to remove the autogenerated fields from the manifests before trying to apply them to the cluster.