godaddy/kubernetes-client

Get pods via LabelSelctor

開放

#144 建立於 2017年8月31日

 (6 則留言) (0 個反應) (0 位負責人)JavaScript (206 個分叉)batch import
help wantedrequest for example

倉庫指標

星標
 (954 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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?

貢獻者指南