Skip to content

pods.getBy labelSelector #2

Description

@mmoonn2

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;
            }
**/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions