-
Notifications
You must be signed in to change notification settings - Fork 21
Cannot create or update resource with managed fields #755
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
Comments
If you use "Remove Metadata clutter" in the editor toolbar you can successfully push the resource and it appears in the resource tree. ps. I am astonished that you can even create a new node, would not have expected it to be possible. Nodes are running the docker containers. |
@olkornii: We are using a server-side patch operation to push the editor to the cluster and update it. The kubernetes docs specify that you cannot update the managed fields using a server-side patch operation which explains why we see this issue
One cannot create a resource with managed fields in this way, either. Steps:
Result:
If you use |
We cannot simply remove the fields before sending because the user may want to set those explicitly, we cannot assume that the're not worth sending. I need to see if there's a way for us to use a different saving mechanism like client-side apply that would succeed. |
…at-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…edhat-developer#755) Signed-off-by: Andre Dietisheim <[email protected]>
…755) Signed-off-by: Andre Dietisheim <[email protected]>
Steps to reproduce:
Expected: A new resource has been created
Actually: an error message:
metadata.managedFields must be nil. Received status: Status(apiVersion=v1, code=400, details=null, kind=Status, message=metadata.managedFields must be nil, metadata=ListMeta(_continue=null, remainingItemCount=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=BadRequest, status=Failure, additionalProperties={}).
The text was updated successfully, but these errors were encountered: