Skip to content

Commit d6585af

Browse files
committed
✨ Fakeclient: Add apply support
This change adds apply support into the fake client. This relies on the upstream support for this which is implemented in a new [FieldManagedObjectTracker][0]. In order to support many types, a custom `multiTypeConverter` is added. [0]: https://github.com/kubernetes/kubernetes/blob/4dc7a48ac6fb631a84e1974772bf7b8fd0bb9c59/staging/src/k8s.io/client-go/testing/fixture.go#L643
1 parent d6126d8 commit d6585af

File tree

5 files changed

+506
-34
lines changed

5 files changed

+506
-34
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ require (
2929
k8s.io/client-go v0.34.0-alpha.0
3030
k8s.io/klog/v2 v2.130.1
3131
k8s.io/utils v0.0.0-20250502105355-0f33e8f1c979
32+
sigs.k8s.io/structured-merge-diff/v4 v4.7.0
3233
sigs.k8s.io/yaml v1.4.0
3334
)
3435

@@ -96,7 +97,6 @@ require (
9697
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect
9798
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
9899
sigs.k8s.io/randfill v1.0.0 // indirect
99-
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
100100
)
101101

102102
replace k8s.io/client-go => k8s.io/client-go v0.0.0-20250603014204-647bbbe85970

0 commit comments

Comments
 (0)