client/pkg/serving
Roland Huß b6a8fa9213 fix(service update): Only update fields which have been sent by server. (#155)
* fix(service update): Only update fields which have been sent by server.

This reflects the lemonade process step1. Tests have been adapted to
verify this behaviours.

The only situation when we update field coming from the server is for
"kn service update" for envs, image and requests/limits.

All other operation are either create (here, we always have to send the
old fields), or read (get/describe).

Fixes #144.

* chore: typo fix

* refactor(service update/create): Moved from Configuration to RevisionTemplateSpec

In order to proper handling the v1alpha1 -> v1beta1 migration methods has been updated to get rid fo Configuration within the service as this
is completely inlined in v1beta1.

The helper methods have been also updated accordingly.
I think we are good now.
2019-06-03 13:30:35 -07:00
..
config_changes.go fix(service update): Only update fields which have been sent by server. (#155) 2019-06-03 13:30:35 -07:00
config_changes_test.go fix(service update): Only update fields which have been sent by server. (#155) 2019-06-03 13:30:35 -07:00
service.go fix(service update): Only update fields which have been sent by server. (#155) 2019-06-03 13:30:35 -07:00