Skip to content

Commit 628e293

Browse files
[CLOUD-436] One namespace can contain only one EAP or JDG application
1 parent d3df080 commit 628e293

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kube/src/main/java/org/openshift/ping/kube/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected ModelNode getNode(String op, String namespace, String labels) throws E
7979
}
8080
url = url + "/" + op;
8181
if (labels != null && labels.length() > 0) {
82-
url = url + "?labels=" + urlencode(labels);
82+
url = url + "?labelSelector=" + urlencode(labels);
8383
}
8484
try (InputStream stream = openStream(url, headers, connectTimeout, readTimeout, operationAttempts, operationSleep, streamProvider)) {
8585
return ModelNode.fromJSONStream(stream);

kube/src/main/java/org/openshift/ping/kube/KubePing.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public void init() throws Exception {
168168
String saToken = readFileToString(getSystemEnv(getSystemEnvName("SA_TOKEN_FILE"), saTokenFile, true));
169169
if (saToken != null) {
170170
// curl -k -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \
171-
// https://172.30.0.2:443/api/v1/namespaces/dward/pods?labels=application%3Deap-app
171+
// https://172.30.0.2:443/api/v1/namespaces/dward/pods?labelSelector=application%3Deap-app
172172
headers.put("Authorization", "Bearer " + saToken);
173173
}
174174
streamProvider = new InsecureStreamProvider();

0 commit comments

Comments
 (0)