k8s.io/apimachinery: bypass https://github.com/kubernetes/kubernetes/issues/87675

For us this manifests when doing

   kubecfg update cluster/kube/cluster.libsonnet

To be precise: when hitting the Ceph/Rook CRD definition.

This is a weird bug. I've seen it manifest earlier on NixOS, but I am
now also seeing it on Gentoo. I've thought that it was because of Go API
breakage, but I've quickly tried to specify older toolchain versions,
but that didn't seem to help? :/

Regardless, I've applied a patch by rnb [1] that seems to fix this. I
also have a suspicion that updating to a newer k8s version might just
fix this, that's why I'm not not too concerned about this for now.

[1] - https://github.com/nrb/unstructured-conversion-bug/commit/a32521024f2093b7d16b64d96c40a8f9dff89880

Change-Id: Id66e3c0bd56e84d785e1baeca86373aa2d0eb6f9
3 files changed