public class KubernetesCloud
extends hudson.slaves.Cloud
| Modifier and Type | Class and Description |
|---|---|
static class |
KubernetesCloud.DescriptorImpl |
| Constructor and Description |
|---|
KubernetesCloud(String name,
List<? extends PodTemplate> templates,
String serverUrl,
String namespace,
String jenkinsUrl,
String containerCapStr,
int connectTimeout,
int readTimeout,
int retentionTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplate(PodTemplate t)
Add a new template to the cloud
|
boolean |
canProvision(hudson.model.Label label) |
io.fabric8.kubernetes.client.KubernetesClient |
connect()
Connects to Docker.
|
String |
getContainerCapStr() |
String |
getCredentialsId() |
String |
getJenkinsTunnel() |
String |
getJenkinsUrl() |
String |
getNamespace() |
int |
getRetentionTimeout() |
String |
getServerCertificate() |
String |
getServerUrl() |
PodTemplate |
getTemplate(hudson.model.Label label)
Gets
PodTemplate that has the matching Label. |
PodTemplate |
getTemplate(String template) |
List<PodTemplate> |
getTemplates() |
boolean |
isSkipTlsVerify() |
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
removeTemplate(PodTemplate t)
Remove a
|
void |
setCredentialsId(String credentialsId) |
void |
setJenkinsTunnel(String jenkinsTunnel) |
void |
setServerCertificate(String serverCertificate) |
void |
setSkipTlsVerify(boolean skipTlsVerify) |
String |
toString() |
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermissionpublic int getRetentionTimeout()
public List<PodTemplate> getTemplates()
public String getServerUrl()
public String getServerCertificate()
@DataBoundSetter public void setServerCertificate(String serverCertificate)
public boolean isSkipTlsVerify()
@DataBoundSetter public void setSkipTlsVerify(boolean skipTlsVerify)
public String getNamespace()
public String getJenkinsUrl()
public String getJenkinsTunnel()
@DataBoundSetter public void setJenkinsTunnel(String jenkinsTunnel)
public String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
public String getContainerCapStr()
public io.fabric8.kubernetes.client.KubernetesClient connect()
throws UnrecoverableKeyException,
NoSuchAlgorithmException,
KeyStoreException,
IOException
UnrecoverableKeyExceptionNoSuchAlgorithmExceptionKeyStoreExceptionIOExceptionpublic Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision in class hudson.slaves.Cloudpublic boolean canProvision(hudson.model.Label label)
canProvision in class hudson.slaves.Cloudpublic PodTemplate getTemplate(String template)
public PodTemplate getTemplate(hudson.model.Label label)
PodTemplate that has the matching Label.label - label to look for in templatespublic void addTemplate(PodTemplate t)
t - docker templatepublic void removeTemplate(PodTemplate t)
t - docker templateCopyright © 2004-2015. All Rights Reserved.