mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-16 02:17:30 +00:00
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]:
|
||
---|---|---|
.. | ||
actions.go | ||
fake_test.go | ||
fake.go | ||
fixture_test.go | ||
fixture.go | ||
interface.go |