Class NonConfigurableKubernetesCloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
-
- org.csanchez.jenkins.plugins.kubernetes.NonConfigurableKubernetesCloud
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
,PodTemplateGroup
public class NonConfigurableKubernetesCloud extends KubernetesCloud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NonConfigurableKubernetesCloud.DescriptorImpl
static class
NonConfigurableKubernetesCloud.FilterImpl
-
Nested classes/interfaces inherited from class org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
KubernetesCloud.PodTemplateSourceImpl
-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Field Summary
-
Fields inherited from class org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
DEFAULT_CONNECT_TIMEOUT_SECONDS, DEFAULT_MAX_REQUESTS_PER_HOST, DEFAULT_POD_LABELS, DEFAULT_READ_TIMEOUT_SECONDS, DEFAULT_RETENTION_TIMEOUT_MINUTES, DEFAULT_WAIT_FOR_POD_SEC, JNLP_NAME
-
-
Constructor Summary
Constructors Constructor Description NonConfigurableKubernetesCloud(String name, KubernetesCloud source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTemplate(PodTemplate template)
Add a new template to the cloudCloud
reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
void
removeTemplate(PodTemplate template)
Remove avoid
replaceTemplate(PodTemplate oldTemplate, PodTemplate newTemplate)
Replaces the old template with the new template.-
Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
addDynamicTemplate, canProvision, connect, doCreate, equals, getAllTemplates, getConnectTimeout, getContainerCap, getContainerCapStr, getCredentialsId, getDefaultsProviderTemplate, getJenkinsTunnel, getJenkinsUrl, getJenkinsUrlOrDie, getJenkinsUrlOrNull, getJnlpregistry, getLabels, getMatchingTemplates, getMaxRequestsPerHost, getMaxRequestsPerHostStr, getNamespace, getPodLabels, getPodRetention, getPodTemplateGroupUrl, getReadTimeout, getRetentionTimeout, getServerCertificate, getServerUrl, getTemplate, getTemplate, getTemplateById, getTemplateDescriptor, getTemplates, getTemplatesFor, getUnwrappedTemplate, getWaitForPodSec, hashCode, hpiRunInit, isAddMasterProxyEnvVars, isCapOnlyOnAlivePods, isDirectConnection, isRestrictedPssSecurityContext, isSkipTlsVerify, isUsageRestricted, isUseJenkinsProxy, isWebSocket, provision, removeDynamicTemplate, setAddMasterProxyEnvVars, setCapOnlyOnAlivePods, setConnectTimeout, setContainerCap, setContainerCapStr, setCredentialsId, setDefaultsProviderTemplate, setDirectConnection, setJenkinsTunnel, setJenkinsUrl, setJnlpregistry, setLabels, setMaxRequestsPerHost, setMaxRequestsPerHostStr, setNamespace, setPodLabels, setPodRetention, setReadTimeout, setRestrictedPssSecurityContext, setRetentionTimeout, setServerCertificate, setServerUrl, setSkipTlsVerify, setTemplates, setUsageRestricted, setUseJenkinsProxy, setWaitForPodSec, setWebSocket, toString
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDescriptor, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
NonConfigurableKubernetesCloud
public NonConfigurableKubernetesCloud(@NonNull String name, @NonNull KubernetesCloud source)
-
-
Method Detail
-
replaceTemplate
public void replaceTemplate(PodTemplate oldTemplate, PodTemplate newTemplate)
Description copied from interface:PodTemplateGroup
Replaces the old template with the new template.- Specified by:
replaceTemplate
in interfacePodTemplateGroup
- Overrides:
replaceTemplate
in classKubernetesCloud
- Parameters:
oldTemplate
- the old template to replacenewTemplate
- the new template to replace with
-
addTemplate
public void addTemplate(PodTemplate template)
Description copied from class:KubernetesCloud
Add a new template to the cloud- Specified by:
addTemplate
in interfacePodTemplateGroup
- Overrides:
addTemplate
in classKubernetesCloud
- Parameters:
template
- docker template
-
removeTemplate
public void removeTemplate(PodTemplate template)
Description copied from class:KubernetesCloud
Remove a- Specified by:
removeTemplate
in interfacePodTemplateGroup
- Overrides:
removeTemplate
in classKubernetesCloud
- Parameters:
template
- docker template
-
reconfigure
public Cloud reconfigure(@NonNull org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException
- Overrides:
reconfigure
in classKubernetesCloud
- Throws:
Descriptor.FormException
-
-