client-go/testing
Alvaro Aleman 81ecec406a FieldManagedObjectTracker: Fix to work with unstructured
Prior to this patch, this fails because the skipnonappliedfieldmanager
uses the `objectcreater` (aka `*runtime.Scheme`) to create a new object
for which it never sets the GVK. In the case of
`*unstructured.Unstructured`, the GVK can not be derived from the object
itself so the operation would subsequently fail [here][0] with an
```
Object 'Kind' is missing in 'unstructured object has no kind'
```

error. Fix this by explicitly setting the GVK in case of unstructured.

[0]: 02eb7d424a/staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go (L98)

Kubernetes-commit: dbdd6a3b4358d91a064de9c0f01d3050e606d553
2025-05-30 15:30:33 -04:00
..
actions.go Generify fake clientsets 2024-07-30 15:47:02 +02:00
fake_test.go remove unneeded references 2022-03-17 18:35:00 +00:00
fake.go Prevent data race condition in csi unit tests 2021-05-18 18:00:03 +08:00
fixture_test.go FieldManagedObjectTracker: Fix to work with unstructured 2025-05-30 15:30:33 -04:00
fixture.go FieldManagedObjectTracker: Fix to work with unstructured 2025-05-30 15:30:33 -04:00
interface.go Implement a FakeClient interface 2021-03-15 14:47:24 +01:00