Skip to content

Commit

Permalink
[ST] Fix detecting kind in systemtests (#9504)
Browse files Browse the repository at this point in the history
Signed-off-by: jkalinic <[email protected]>
  • Loading branch information
jankalinic authored Jan 7, 2024
1 parent a611991 commit ff8408d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/main/java/io/strimzi/test/k8s/cluster/Kind.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public boolean isAvailable() {
*/
@Override
public boolean isClusterUp() {
List<String> cmd = Arrays.asList(CMD, "status");
List<String> cmd = Arrays.asList("kubectl", "get", "nodes", "-o", "jsonpath='{.items[*].spec.providerID}'");
try {
return Exec.exec(cmd).exitStatus();
return Exec.exec(cmd).out().startsWith("kind");
} catch (KubeClusterException e) {
LOGGER.debug("'" + String.join(" ", cmd) + "' failed. Please double check connectivity to your cluster!");
LOGGER.debug(e);
Expand Down

0 comments on commit ff8408d

Please sign in to comment.