Class KubernetesFolderProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
org.csanchez.jenkins.plugins.kubernetes.KubernetesFolderProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class KubernetesFolderProperty
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
Provides folder level Kubernetes configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Descriptor class.static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
collectAllowedClouds
(Set<String> allowedClouds, ItemGroup<?> itemGroup) Recursively collect all allowed clouds from this folder and its parents.static boolean
isAllowed
(KubernetesSlave agent, Job job) com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>
reconfigure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) void
setPermittedClouds
(Collection<String> permittedClouds) Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, setOwner
-
Constructor Details
-
KubernetesFolderProperty
@DataBoundConstructor public KubernetesFolderProperty()Constructor.
-
-
Method Details
-
setPermittedClouds
-
getPermittedClouds
-
isAllowed
-
reconfigure
public com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?> reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws Descriptor.FormException - Specified by:
reconfigure
in interfaceReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
- Overrides:
reconfigure
in classcom.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
- Throws:
Descriptor.FormException
-
collectAllowedClouds
Recursively collect all allowed clouds from this folder and its parents.- Parameters:
allowedClouds
- This Set contains all allowed clouds after returning.itemGroup
- The itemGroup to inspect.
-