Retrieve container annotations advertised by a device plugin

Hello,

I have a custom device plugin which returns a container annotation to kubelet in its protobuf ContainerAllocateResponse message.

I’m able to see this container annotation with “crictl inspect” in the returned JSON:

{
"info": {
"config": {
"annotations": {
<<< here >>>

Is there a way to retrieve this annotation using the kubernetes client API? For instance, it does not appear in the pod object.

To clarify my needs: I also have an operator that is monitoring the k8s API (among other things, pod add/del), and I would like to retrieve the annotations advertised by my device plugin for a given pod.

Thanks!

Olivier