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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PodTemplatetransform(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:PodTemplateFilterTransforms a pod template definition.- Specified by:
transformin classPodTemplateFilter- Parameters:
cloud- TheKubernetesCloudinstance thePodTemplateinstances 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.
-