public final class KubernetesFacade extends Object implements Closeable
| Constructor and Description |
|---|
KubernetesFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.fabric8.kubernetes.api.model.Pod |
createPod(String hostname,
String jobname,
org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate,
String buildWorkspace,
Map<String,String> labels) |
Boolean |
deletePod(String name) |
io.fabric8.kubernetes.client.dsl.ExecWatch |
exec(String podName,
String containerName,
AtomicBoolean alive,
CountDownLatch started,
CountDownLatch finished,
PrintStream out,
String... statements) |
static boolean |
hasWorkspaceMount(String workspace,
List<org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume> volumes) |
static boolean |
isPodCompleted(io.fabric8.kubernetes.api.model.Pod pod) |
static boolean |
isPodRunning(io.fabric8.kubernetes.api.model.Pod pod) |
io.fabric8.kubernetes.client.Watch |
watch(String podName,
AtomicBoolean alive,
CountDownLatch started,
CountDownLatch finished,
Boolean cleanUpOnFinish) |
io.fabric8.kubernetes.client.dsl.LogWatch |
watchLogs(String podName) |
public io.fabric8.kubernetes.api.model.Pod createPod(String hostname, String jobname, org.csanchez.jenkins.plugins.kubernetes.PodTemplate podTemplate, String buildWorkspace, Map<String,String> labels)
public io.fabric8.kubernetes.client.dsl.LogWatch watchLogs(String podName)
public io.fabric8.kubernetes.client.dsl.ExecWatch exec(String podName, String containerName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, PrintStream out, String... statements)
public io.fabric8.kubernetes.client.Watch watch(String podName, AtomicBoolean alive, CountDownLatch started, CountDownLatch finished, Boolean cleanUpOnFinish)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic static boolean hasWorkspaceMount(String workspace, List<org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume> volumes)
public static final boolean isPodRunning(io.fabric8.kubernetes.api.model.Pod pod)
public static final boolean isPodCompleted(io.fabric8.kubernetes.api.model.Pod pod)
Copyright © 2015–2019 Red Hat. All rights reserved.