godaddy/kubernetes-client

Get pods via LabelSelctor

Open

#144 aperta il 31 ago 2017

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (206 fork)batch import
help wantedrequest for example

Metriche repository

Star
 (954 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When trying to get pods via label selector I get all pods returned in the name space. core.ns.po.get({ qs: { labelSelector: 'mylabel=thelabel' } }, (err, results) = > { console.log(results); });

Not sure what the correct method would be for getting pods based on label selectors. Looking through the code base, I noticed the .get on pods will not accept the label selector. https://github.com/godaddy/kubernetes-client/blob/master/lib/replicationcontrollers.js#L46

Am I overlooking something simple?

Guida contributor