Hi list, I need to retrieve the Labels map from a Pod object but I only have 
the Endpoint object. The options I think I have are:

- Instantiate the Pod or the ObjectMeta of the Pod from the 
ep.Subsets[].Addresses[].TargetRef.(ObjectReference). If this is a valid 
option, how do I instantiate something from an ObjectReference?

- Track Pods instead of Endpoints. I’m using 
k8s.io/client-go/tools/cache.Store.(Endpoint) to track Endpoints, perhaps I can 
change to Pods if, from an Endpoint, I cannot list Labels of the corresponding 
Pod. Btw is there any relevant performance penalty changing from ep to pod?

Is there a preferrable option here?

~jm

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to