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 ofPodTemplateFilter
filtering pod templates matching the right label.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PodTemplateLabelFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PodTemplate
transform(KubernetesCloud cloud, PodTemplate podTemplate, Label label)
Transforms a pod template definition.-
Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.PodTemplateFilter
all, applyAll
-
-
-
-
Method Detail
-
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 classPodTemplateFilter
- Parameters:
cloud
- TheKubernetesCloud
instance thePodTemplate
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.
-
-