At some point, the Kubernetes fake-client broke populating TypeMeta for objects.
This breaks testing any function which uses resource.Kind as part of the tested logic.
Let's implement a general solution to this issue, probably using the client builder's InterceptorFuncs.
The same modification must be applied to the GAMMA tests as well, so that the type references can be completely removed.
At some point, the Kubernetes fake-client broke populating TypeMeta for objects.
This breaks testing any function which uses
resource.Kindas part of the tested logic.Let's implement a general solution to this issue, probably using the client builder's
InterceptorFuncs.The same modification must be applied to the GAMMA tests as well, so that the type references can be completely removed.