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.
  • Constructor Details

    • KubernetesFolderProperty

      @DataBoundConstructor public KubernetesFolderProperty()
      Constructor.
  • Method Details

    • setPermittedClouds

      @DataBoundSetter public void setPermittedClouds(Collection<String> permittedClouds)
    • getPermittedClouds

      public Collection<String> getPermittedClouds()
    • isAllowed

      public static boolean isAllowed(KubernetesSlave agent, Job job)
    • 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 interface ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
      Overrides:
      reconfigure in class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
      Throws:
      Descriptor.FormException
    • collectAllowedClouds

      public static void collectAllowedClouds(Set<String> allowedClouds, ItemGroup<?> itemGroup)
      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.