Merge pull request #4766 from mikedanese/remove-util-merge

Remove pkg/util/merge and replace with evanphx/json-patch
This commit is contained in:
Brian Grant
2015-02-25 09:22:01 -08:00
11 changed files with 1411 additions and 131 deletions

View File

@@ -28,7 +28,8 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util/merge"
"github.com/evanphx/json-patch"
"github.com/golang/glog"
"github.com/spf13/cobra"
)
@@ -167,7 +168,7 @@ func Merge(dst runtime.Object, fragment, kind string) (runtime.Object, error) {
if err != nil {
return nil, err
}
patched, err := merge.MergeJSON(target, []byte(fragment))
patched, err := jsonpatch.MergePatch(target, []byte(fragment))
if err != nil {
return nil, err
}