Skip to content

Commit e9c2143

Browse files
committed
fix wrong patch set when updating nodes
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 9fda24b commit e9c2143

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

k8s/patch.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ type (
66
JsonPatch interface{}
77

88
JsonPatchString struct {
9-
JsonPatch
10-
Op string `json:"op"`
11-
Path string `json:"path"`
12-
Value string `json:"value"`
9+
JsonPatch `json:"-"`
10+
Op string `json:"op"`
11+
Path string `json:"path"`
12+
Value string `json:"value"`
1313
}
1414

1515
JsonPatchObject struct {
16-
JsonPatch
17-
Op string `json:"op"`
18-
Path string `json:"path"`
19-
Value interface{} `json:"value"`
16+
JsonPatch `json:"-"`
17+
Op string `json:"op"`
18+
Path string `json:"path"`
19+
Value interface{} `json:"value"`
2020
}
2121
)
2222

0 commit comments

Comments
 (0)