Class PodTemplateLabelFilter

java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.PodTemplateFilter
org.csanchez.jenkins.plugins.kubernetes.PodTemplateLabelFilter
All Implemented Interfaces:
ExtensionPoint

@Extension(ordinal=1000.0) public class PodTemplateLabelFilter extends PodTemplateFilter
Implementation of PodTemplateFilter filtering pod templates matching the right label.
  • Constructor Details

    • PodTemplateLabelFilter

      public PodTemplateLabelFilter()
  • Method Details

    • transform

      protected PodTemplate transform(@NonNull KubernetesCloud cloud, @NonNull PodTemplate podTemplate, @CheckForNull Label label)
      Description copied from class: PodTemplateFilter
      Transforms a pod template definition.
      Specified by:
      transform in class PodTemplateFilter
      Parameters:
      cloud - The KubernetesCloud instance the PodTemplate instances will be scheduled into.
      podTemplate - The input pod template to process.
      label - The label that was requested for provisioning
      Returns:
      A new pod template after transformation. It can be null if the filter denies access to the given pod template.