1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-24 11:26:55 +00:00
steve/pkg/stores/proxy
Colleen Murphy adaa391ddf Drop unrecognized fields before update
Add a nested store to the proxy store to strip non-Kubernetes fields
from the object being updated.

The steve formatter and proxy store adds fields to objects when it
outputs them to the client, for usability by the UI. It adds the
object's fields[1], relationships to other objects[2], a summary of the
object's state[3], and additional information in the conditions[4].
These fields are not native to Kubernetes, so when a client submits the
object back as an update, Kubernetes reports a warning that they are
unrecognized. This change ensures the extra fields are removed before
submitting the update.

[1] bf2e9655f5/pkg/stores/proxy/proxy_store.go (L189)
[2] bf2e9655f5/pkg/resources/common/formatter.go (L106)
[3] bf2e9655f5/pkg/resources/common/formatter.go (L100)
[4] bf2e9655f5/pkg/resources/common/formatter.go (L108)
2023-07-14 14:54:01 -07:00
..
error_wrapper.go docs: Add docs for partition and proxy store 2022-10-31 10:34:41 -07:00
proxy_store_test.go Add tests 2023-06-09 13:18:32 -07:00
proxy_store.go Drop unrecognized fields before update 2023-07-14 14:54:01 -07:00
rbac_store_test.go Add tests for RBAC partitioner 2022-12-13 10:09:30 -08:00
rbac_store.go Initial implmentation of warning headers 2022-12-30 12:11:14 -05:00
unformatter_test.go Drop unrecognized fields before update 2023-07-14 14:54:01 -07:00
unformatter.go Drop unrecognized fields before update 2023-07-14 14:54:01 -07:00
watch_refresh.go docs: Add docs for partition and proxy store 2022-10-31 10:34:41 -07:00