Search in sources :

Example 1 with CustomPodOperationsImpl

use of com.redhat.devtools.intellij.tektoncd.ui.toolwindow.debug.CustomPodOperationsImpl in project intellij-tekton by redhat-developer.

the class TknCli method customExecCommandInContainer.

public ExecWatch customExecCommandInContainer(Pod pod, String containerId, String... command) {
    Config config = new ConfigBuilder().build();
    CustomPodOperationsImpl podOperations = new CustomPodOperationsImpl(HttpClientUtils.createHttpClient(config), config);
    return podOperations.inNamespace(pod.getMetadata().getNamespace()).withName(pod.getMetadata().getName()).inContainer(containerId).redirectingInput().redirectingOutput().redirectingError().withTTY().exec(command);
}
Also used : CustomPodOperationsImpl(com.redhat.devtools.intellij.tektoncd.ui.toolwindow.debug.CustomPodOperationsImpl) Config(io.fabric8.kubernetes.client.Config) ConfigBuilder(io.fabric8.kubernetes.client.ConfigBuilder)

Aggregations

CustomPodOperationsImpl (com.redhat.devtools.intellij.tektoncd.ui.toolwindow.debug.CustomPodOperationsImpl)1 Config (io.fabric8.kubernetes.client.Config)1 ConfigBuilder (io.fabric8.kubernetes.client.ConfigBuilder)1