Search in sources :

Example 1 with LocalPortForward

use of io.fabric8.kubernetes.client.LocalPortForward in project syndesis-qe by syndesisio.

the class TestUtils method createLocalPortForward.

public static LocalPortForward createLocalPortForward(String podName, int remotePort, int localPort) {
    final Pod podToForward = OpenShiftUtils.getInstance().getAnyPod("component", podName);
    final LocalPortForward lpf = OpenShiftUtils.portForward(podToForward, remotePort, localPort);
    return lpf;
}
Also used : LocalPortForward(io.fabric8.kubernetes.client.LocalPortForward) Pod(io.fabric8.kubernetes.api.model.Pod)

Aggregations

Pod (io.fabric8.kubernetes.api.model.Pod)1 LocalPortForward (io.fabric8.kubernetes.client.LocalPortForward)1