provider/kubernetes: Fix sorting of the PatchOperations (#13117)
This commit is contained in:
parent
0fb54957fe
commit
587b50fc43
|
@ -58,7 +58,7 @@ func (po PatchOperations) MarshalJSON() ([]byte, error) {
|
||||||
func (po PatchOperations) Equal(ops []PatchOperation) bool {
|
func (po PatchOperations) Equal(ops []PatchOperation) bool {
|
||||||
var v []PatchOperation = po
|
var v []PatchOperation = po
|
||||||
|
|
||||||
sort.Slice(v, sortByPathAsc(ops))
|
sort.Slice(v, sortByPathAsc(v))
|
||||||
sort.Slice(ops, sortByPathAsc(ops))
|
sort.Slice(ops, sortByPathAsc(ops))
|
||||||
|
|
||||||
return reflect.DeepEqual(v, ops)
|
return reflect.DeepEqual(v, ops)
|
||||||
|
|
Loading…
Reference in New Issue