Commit 91851cc2 authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

getPods low level fix

parent dcec72df
const config = require('config')
const k8 = require('./kubernetes');
// gets pods with the given labels
function getPods(labels, next) {
exports.getPods = function(labels, next) {
let selector = ""
let first = true
for (k in labels) {
......@@ -11,5 +12,5 @@ function getPods(labels, next) {
selector += ','
selector += `${k}=${labels[k]}`
}
k8.ns(config.k8component.namespace).pods({ qs: { labelSelector: selector } }, next)
k8.ns(config.k8component.namespace).pods.get({ qs: { labelSelector: selector } }, next)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment