ARO-RP/pkg/api/util/immutable
Matthew Barnes 3273b70b33
BUG: Fix golang client PUT for GA (#3204)
* swagger: Use struct tags to specify read-only fields

* immutable: Handle `swagger:"readOnly"` tag during validation

The left-hand operand (v) should omit read-only struct fields;
i.e. the field should always be the zero-value for its type.

* api: Add ExternalNoReadOnly method to OpenShiftClusterConverter

ExternalNoReadOnly removes all read-only fields from the external
representation. This is necessary when patching a cluster document;
read-only fields must be omitted from the external representation
in order to pass static validation.

* e2e: Exercise using PUT to update managed outbound IPs

---------

Co-authored-by: Matthew Barnes <mbarnes@fedorapeople.org>
2023-10-24 16:10:48 -06:00
..
immutable.go BUG: Fix golang client PUT for GA (#3204) 2023-10-24 16:10:48 -06:00
immutable_test.go Move pkg/api dependencies on util/immutable to api/util/immutable (#3079) 2023-08-09 11:47:49 +10:00