@@ -20,19 +20,18 @@ import (
20
20
"fmt"
21
21
22
22
jsonpatch "github.com/evanphx/json-patch"
23
- "k8s.io/apimachinery/pkg/runtime"
24
23
"k8s.io/apimachinery/pkg/types"
25
24
"k8s.io/apimachinery/pkg/util/json"
26
25
"k8s.io/apimachinery/pkg/util/strategicpatch"
27
26
)
28
27
29
28
var (
30
29
// Apply uses server-side apply to patch the given object.
31
- Apply = applyPatch {}
30
+ Apply Patch = applyPatch {}
32
31
33
32
// Merge uses the raw object as a merge patch, without modifications.
34
33
// Use MergeFrom if you wish to compute a diff instead.
35
- Merge = mergePatch {}
34
+ Merge Patch = mergePatch {}
36
35
)
37
36
38
37
type patch struct {
@@ -92,7 +91,7 @@ type mergeFromPatch struct {
92
91
opts MergeFromOptions
93
92
}
94
93
95
- // Type implements patch .
94
+ // Type implements Patch .
96
95
func (s * mergeFromPatch ) Type () types.PatchType {
97
96
return s .patchType
98
97
}
@@ -188,7 +187,7 @@ func (p mergePatch) Type() types.PatchType {
188
187
}
189
188
190
189
// Data implements Patch.
191
- func (p mergePatch ) Data (obj runtime. Object ) ([]byte , error ) {
190
+ func (p mergePatch ) Data (obj Object ) ([]byte , error ) {
192
191
// NB(directxman12): we might technically want to be using an actual encoder
193
192
// here (in case some more performant encoder is introduced) but this is
194
193
// correct and sufficient for our uses (it's what the JSON serializer in
@@ -205,7 +204,7 @@ func (p applyPatch) Type() types.PatchType {
205
204
}
206
205
207
206
// Data implements Patch.
208
- func (p applyPatch ) Data (obj runtime. Object ) ([]byte , error ) {
207
+ func (p applyPatch ) Data (obj Object ) ([]byte , error ) {
209
208
// NB(directxman12): we might technically want to be using an actual encoder
210
209
// here (in case some more performant encoder is introduced) but this is
211
210
// correct and sufficient for our uses (it's what the JSON serializer in
0 commit comments