File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,19 @@ import (
29
29
"sync"
30
30
"time"
31
31
32
- // Using v4 to match upstream
32
+ /*
33
+ Stick with gopkg.in/evanphx/json-patch.v4 here to match
34
+ upstream Kubernetes code and avoid breaking changes introduced in v5.
35
+ - Kubernetes itself remains on json-patch v4 to avoid compatibility issues
36
+ tied to v5’s stricter RFC6902 compliance.
37
+ - The fake client code is adapted from client-go’s testing fixture, which also
38
+ relies on json-patch v4.
39
+ See:
40
+ https://github.com/kubernetes/kubernetes/pull/91622 (discussion of why K8s
41
+ stays on v4)
42
+ https://github.com/kubernetes/kubernetes/pull/120326 (v5.6.0+incompatible
43
+ missing a critical fix)
44
+ */
33
45
jsonpatch "gopkg.in/evanphx/json-patch.v4"
34
46
appsv1 "k8s.io/api/apps/v1"
35
47
authenticationv1 "k8s.io/api/authentication/v1"
@@ -1138,7 +1150,7 @@ func (c *fakeClient) deleteObjectLocked(gvr schema.GroupVersionResource, accesso
1138
1150
}
1139
1151
}
1140
1152
1141
- //TODO: implement propagation
1153
+ // TODO: implement propagation
1142
1154
return c .tracker .Delete (gvr , accessor .GetNamespace (), accessor .GetName ())
1143
1155
}
1144
1156
You can’t perform that action at this time.
0 commit comments