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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
KubernetesCloud.PodTemplateSourceImplNested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudStateNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemplate(PodTemplate template) Add a new template to the cloudvoidChecks whether the currentAuthenticationhas sufficient permissions to manage the templates in this group.booleanreconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) voidremoveTemplate(PodTemplate template) Remove avoidreplaceTemplate(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, getGarbageCollection, getJenkinsTunnel, getJenkinsUrl, getJenkinsUrlOrDie, getJenkinsUrlOrNull, getJnlpregistry, getLabels, getManagePermission, getMatchingTemplates, getMaxRequestsPerHost, getMaxRequestsPerHostStr, getNamespace, getPodLabels, getPodResource, getPodRetention, getPodTemplateGroupUrl, getReadTimeout, getRetentionTimeout, getServerCertificate, getServerUrl, getTemplate, getTemplate, getTemplateById, getTemplateDescriptor, getTemplatesFor, getTrait, getTraits, getUnwrappedTemplate, getWaitForPodSec, hashCode, hpiRunInit, isAddMasterProxyEnvVars, isCapOnlyOnAlivePods, isDirectConnection, isRestrictedPssSecurityContext, isSkipTlsVerify, isUsageRestricted, isUseJenkinsProxy, isWebSocket, provision, registerPodInformer, removeDynamicTemplate, setAddMasterProxyEnvVars, setCapOnlyOnAlivePods, setConnectTimeout, setContainerCap, setContainerCapStr, setCredentialsId, setDefaultsProviderTemplate, setDirectConnection, setGarbageCollection, setJenkinsTunnel, setJenkinsUrl, setJnlpregistry, setLabels, setMaxRequestsPerHost, setMaxRequestsPerHostStr, setNamespace, setPodLabels, setPodRetention, setReadTimeout, setRestrictedPssSecurityContext, setRetentionTimeout, setServerCertificate, setServerUrl, setSkipTlsVerify, setTemplates, setTraits, setUsageRestricted, setUseJenkinsProxy, setWaitForPodSec, setWebSocket, toStringMethods inherited from class hudson.slaves.Cloud
all, canProvision, doConfigSubmit, doDoDelete, getACL, getDescriptor, getDisplayName, getIcon, getIconAltText, getIconClassName, getSearchUrl, getUrl, provision, reconfigure, registerPermissionsMethods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, getDynamic, removeAction, removeActions, replaceAction, replaceActionsMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2Methods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
NonConfigurableKubernetesCloud
-
-
Method Details
-
replaceTemplate
Description copied from interface:PodTemplateGroupReplaces the old template with the new template.- Specified by:
replaceTemplatein interfacePodTemplateGroup- Overrides:
replaceTemplatein classKubernetesCloud- Parameters:
oldTemplate- the old template to replacenewTemplate- the new template to replace with
-
addTemplate
Description copied from class:KubernetesCloudAdd a new template to the cloud- Specified by:
addTemplatein interfacePodTemplateGroup- Overrides:
addTemplatein classKubernetesCloud- Parameters:
template- docker template
-
removeTemplate
Description copied from class:KubernetesCloudRemove a- Specified by:
removeTemplatein interfacePodTemplateGroup- Overrides:
removeTemplatein classKubernetesCloud- Parameters:
template- docker template
-
hasManagePermission
public boolean hasManagePermission()- Returns:
trueif the currentAuthenticationhas permissions to add / replace / remove templates.
-
checkManagePermission
public void checkManagePermission() throws org.springframework.security.access.AccessDeniedExceptionDescription copied from interface:PodTemplateGroupChecks whether the currentAuthenticationhas sufficient permissions to manage the templates in this group.- Throws:
org.springframework.security.access.AccessDeniedException- if access is denied for the currentAuthentication.
-
reconfigure
public Cloud reconfigure(@NonNull org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject form) throws Descriptor.FormException - Overrides:
reconfigurein classKubernetesCloud- Throws:
Descriptor.FormException
-
getTemplates
- Overrides:
getTemplatesin classKubernetesCloud
-