godaddy/kubernetes-client

Get pods via LabelSelctor

Open

#144 创建于 2017年8月31日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)JavaScript (954 star) (206 fork)batch import
help wantedrequest for example

描述

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?

贡献者指南