Simulate the missing resource kind identifiers in the initial listing
@@ -77,6 +77,9 @@ async def streaming_watch(
rsp = fetching.list_objs(resource=resource, namespace=namespace)
resource_version = rsp['metadata']['resourceVersion']
for item in rsp['items']:
+ # FIXME: fix in pykube to inject the missing item's fields from the list's metainfo.
+ item.setdefault('kind', rsp['kind'][:-4] if rsp['kind'][-4:] == 'List' else rsp['kind'])
+ item.setdefault('apiVersion', rsp['apiVersion'])
yield {'type': None, 'object': item}
# Then, watch the resources starting from the list's resource version.
