Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pods.getBy labelSelector #2

Open
mmoonn2 opened this issue Jun 18, 2015 · 1 comment
Open

pods.getBy labelSelector #2

mmoonn2 opened this issue Jun 18, 2015 · 1 comment

Comments

@mmoonn2
Copy link

mmoonn2 commented Jun 18, 2015

I want use labelSelector

client.pods.getBy({ labelSelector: 'name=hello-node' }, function (err, pods) {
    console.log(err, pods)
})

but i see

this.getBy = function (query, callback) {
/**
            var qstring = '';
            if(typeof query === 'object') {
                Object.keys(query, function (key, value) {
                    qstring += '&' + key + '=' + value;
                });
                qstring = qstring.substring(1);
            } else {
                qstring = query;
            }
**/
@agilebot1
Copy link
Contributor

yes, the labelSelector will be supported on later version. and welcome contribute your code to fix this issue. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants