CloudQuery v6 k8s plugin not setting kind and apiVersion fields

Hi, we’ve just set up v6.0.0 of the k8s plugin (writing to PostgreSQL) and it seems to be working fine, but I’ve noticed that the kind and apiVersion fields aren’t being set for any of the tables. Any ideas if this is a configuration error, or a bug?

Hi Gavin :wave:

I’ve managed to reproduce what you describe locally and I see the same; kind and apiVersion are missing. I’m just digging in to see if they are missing from the K8s API response (probably not) vs getting lost during the conversion to Go structs.

I’ll keep you posted. From what I can tell, it looks like kind and apiVersion are actually deliberately removed during the response decoding in the library kubernetes/client-go the plugin uses - see issue.

Interesting, seems like an odd decision. Not a critical issue for us, as we can infer the kind from the table name, but it would be good to fix.