Class PodTemplateLabelFilter
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.PodTemplateFilter
org.csanchez.jenkins.plugins.kubernetes.PodTemplateLabelFilter
- All Implemented Interfaces:
ExtensionPoint
Implementation of
PodTemplateFilter
filtering pod templates matching the right label.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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 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.
-