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 (
2929"sync"
3030"time"
3131
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+ */
3345jsonpatch "gopkg.in/evanphx/json-patch.v4"
3446appsv1 "k8s.io/api/apps/v1"
3547authenticationv1 "k8s.io/api/authentication/v1"
@@ -1138,7 +1150,7 @@ func (c *fakeClient) deleteObjectLocked(gvr schema.GroupVersionResource, accesso
11381150}
11391151}
11401152
1141- //TODO: implement propagation
1153+ // TODO: implement propagation
11421154return c .tracker .Delete (gvr , accessor .GetNamespace (), accessor .GetName ())
11431155}
11441156
You can’t perform that action at this time.
0 commit comments