public class KubernetesSlave extends AbstractCloudSlave
Modifier and Type | Class and Description |
---|---|
static class |
KubernetesSlave.Builder
Builds a
KubernetesSlave instance. |
static class |
KubernetesSlave.DescriptorImpl |
Slave.JnlpJar, Slave.SlaveDescriptor
Node.InternalComputerListener, Node.Mode
ExtensionPoint.LegacyInstancesAreScopedToHudson
holdOffLaunchUntilSave, SKIP_BUILD_CHECK_ON_FLYWEIGHTS
Modifier | Constructor and Description |
---|---|
|
KubernetesSlave(PodTemplate template,
String nodeDescription,
KubernetesCloud cloud,
Label label)
Deprecated.
Use
KubernetesSlave.Builder instead. |
|
KubernetesSlave(PodTemplate template,
String nodeDescription,
KubernetesCloud cloud,
String labelStr)
Deprecated.
Use
KubernetesSlave.Builder instead. |
|
KubernetesSlave(PodTemplate template,
String nodeDescription,
KubernetesCloud cloud,
String labelStr,
RetentionStrategy rs)
Deprecated.
Use
KubernetesSlave.Builder instead. |
|
KubernetesSlave(PodTemplate template,
String nodeDescription,
String cloudName,
String labelStr,
RetentionStrategy rs)
Deprecated.
Use
KubernetesSlave.Builder instead. |
protected |
KubernetesSlave(String name,
PodTemplate template,
String nodeDescription,
String cloudName,
String labelStr,
ComputerLauncher computerLauncher,
RetentionStrategy rs) |
Modifier and Type | Method and Description |
---|---|
protected void |
_terminate(TaskListener listener) |
static KubernetesSlave.Builder |
builder()
Returns a new
KubernetesSlave.Builder instance. |
KubernetesComputer |
createComputer() |
Launcher |
createLauncher(TaskListener listener) |
boolean |
equals(Object o) |
Cloud |
getCloud()
Deprecated.
Please use the strongly typed getKubernetesCloud() instead.
|
String |
getCloudName() |
KubernetesCloud |
getKubernetesCloud()
Returns the cloud instance which created this agent.
|
String |
getNamespace() |
String |
getPodName() |
PodRetention |
getPodRetention(KubernetesCloud cloud) |
PodTemplate |
getTemplate() |
int |
hashCode() |
protected Object |
readResolve() |
void |
setNamespace(String namespace) |
String |
toString() |
terminate
getClockDifferenceCallable, getComputer, getDescriptor, getLabelString, getLauncher, getMode, getNodeDescription, getNodeName, getNodeProperties, getNumExecutors, getRemoteFS, getRetentionStrategy, getRootPath, getUserId, getWorkspaceFor, getWorkspaceRoot, setLabelString, setLauncher, setMode, setNodeDescription, setNodeName, setNodeProperties, setNumExecutors, setRetentionStrategy, setUserId
canTake, canTake, createPath, getACL, getAssignedLabels, getChannel, getClockDifference, getDisplayName, getFileSystemProvisioner, getLabelCloud, getNodeProperty, getNodeProperty, getNodePropertyDescriptors, getSearchUrl, getSelfLabel, isAcceptingTasks, isHoldOffLaunchUntilSave, reconfigure, save, toComputer
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkPermission, hasPermission, hasPermission
@Deprecated public KubernetesSlave(PodTemplate template, String nodeDescription, KubernetesCloud cloud, String labelStr) throws Descriptor.FormException, IOException
KubernetesSlave.Builder
instead.Descriptor.FormException
IOException
@Deprecated public KubernetesSlave(PodTemplate template, String nodeDescription, KubernetesCloud cloud, Label label) throws Descriptor.FormException, IOException
KubernetesSlave.Builder
instead.Descriptor.FormException
IOException
@Deprecated public KubernetesSlave(PodTemplate template, String nodeDescription, KubernetesCloud cloud, String labelStr, RetentionStrategy rs) throws Descriptor.FormException, IOException
KubernetesSlave.Builder
instead.Descriptor.FormException
IOException
@Deprecated @DataBoundConstructor public KubernetesSlave(PodTemplate template, String nodeDescription, String cloudName, String labelStr, RetentionStrategy rs) throws Descriptor.FormException, IOException
KubernetesSlave.Builder
instead.Descriptor.FormException
IOException
protected KubernetesSlave(String name, @Nonnull PodTemplate template, String nodeDescription, String cloudName, String labelStr, ComputerLauncher computerLauncher, RetentionStrategy rs) throws Descriptor.FormException, IOException
Descriptor.FormException
IOException
@Nonnull public PodTemplate getTemplate()
public String getCloudName()
public String getPodName()
@Deprecated public Cloud getCloud()
@Nonnull public KubernetesCloud getKubernetesCloud()
IllegalStateException
- if the cloud doesn't exist anymore, or is not a KubernetesCloud
.public KubernetesComputer createComputer()
createComputer
in class AbstractCloudSlave
public PodRetention getPodRetention(KubernetesCloud cloud)
protected void _terminate(TaskListener listener) throws IOException, InterruptedException
_terminate
in class AbstractCloudSlave
IOException
InterruptedException
public Launcher createLauncher(TaskListener listener)
createLauncher
in class Slave
protected Object readResolve()
readResolve
in class Slave
public static KubernetesSlave.Builder builder()
KubernetesSlave.Builder
instance.KubernetesSlave.Builder
instance.Copyright © 2016–2019. All rights reserved.