client/pkg/util
Roland Huß 8ca97c7920
Feature: "kn service apply" (#964)
* feat: "kn service apply"

This commit introduces a client-side apply with a plain JsonPatchMerge. This is more limited than a StrategicPatchMerg as it does not allow to merge lists (they are just overwritten). Also is not a real 3-way merger that would lead to a conflict when both the, the server-side and the provide update overlapp in fields that updated, compared to the shared original configuration. This is a problem of  JsonThreeWayMerger itself, as pointed out in https://github.com/kubernetes/kubernetes/pull/40666#pullrequestreview-502804243.

This limitation is shared with kubectl, which suffers from the same issue if using `kubectl apply` with a custom resource (i.e. with everything that has schema that is not registered within kubectl).

Tests are missing, too, but will come soon

* chore: Add tests for 'kn apply'

* refactor: Removed PatchService from pulic API interface

* fix: Display of service URL at the end, when no changes apply

* chore: Add initial E2E test

* chore: Implemented review suggestions

* More tests
* Example for kn service apply
* Remove commented-out code

* lint fixes

* fix formatting of kn service apply doc

* fixing go.sum

* chore: Update deps
2020-11-02 00:36:35 -08:00
..
mock chore: Refactor mock testing (#548) 2019-12-11 10:27:49 -08:00
compare.go Fix various misspellings and linter items (#1057) 2020-10-12 21:24:30 -07:00
compare_test.go feat(source): Add 'kn source list' (#666) 2020-03-10 00:41:28 -07:00
corev1_helper.go Add ResolvePodSpec to podspec.go and move the related utilities to podspec_helper (#1024) 2020-10-27 10:45:33 -07:00
corev1_helper_test.go Add ResolvePodSpec to podspec.go and move the related utilities to podspec_helper (#1024) 2020-10-27 10:45:33 -07:00
logging_http_transport.go shorten the --log-http Authorization mask value (#484) 2019-11-18 13:08:07 -08:00
logging_http_transport_test.go shorten the --log-http Authorization mask value (#484) 2019-11-18 13:08:07 -08:00
orderedmap.go Add linting config and fix issues. (#1001) 2020-09-11 05:41:00 -07:00
orderedmap_test.go Add support for envFrom and volumeMounts (#393) 2019-11-06 04:15:03 -08:00
parsing_helper.go Add --ce-override flag for apiserver and ping sources (#865) 2020-06-01 02:39:03 -07:00
parsing_helper_test.go Improve 'source apiserver update --resource' (#590) 2020-01-28 06:49:26 -08:00
schema_handling.go refactor(knclient): Moved KnClient -> KnServingClient (#420) 2019-09-28 09:21:45 -07:00
schema_handling_test.go feature(serving): Update API to serving.knative.dev/v1 (#640) 2020-02-07 02:03:14 -08:00
unstructured.go Feature: "kn service apply" (#964) 2020-11-02 00:36:35 -08:00
unstructured_test.go Fix various misspellings and linter items (#1057) 2020-10-12 21:24:30 -07:00