public abstract class PodTemplateFilter extends Object implements ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
PodTemplateFilter() |
Modifier and Type | Method and Description |
---|---|
static ExtensionList<PodTemplateFilter> |
all()
Returns a list of all implementations of
PodTemplateFilter . |
static List<PodTemplate> |
applyAll(KubernetesCloud cloud,
List<PodTemplate> podTemplates,
Label label)
Pass the given pod templates list into all filters implementations.
|
protected abstract PodTemplate |
transform(KubernetesCloud cloud,
PodTemplate podTemplate,
Label label)
Transforms a pod template definition.
|
public static ExtensionList<PodTemplateFilter> all()
PodTemplateFilter
.PodTemplateFilter
.public static List<PodTemplate> applyAll(@Nonnull KubernetesCloud cloud, @Nonnull List<PodTemplate> podTemplates, @CheckForNull Label label)
cloud
- The cloud instance the pod templates are getting considered forpodTemplates
- The initial list of pod templateslabel
- The label that was requested for provisioning@CheckForNull protected abstract PodTemplate transform(@Nonnull KubernetesCloud cloud, @Nonnull PodTemplate podTemplate, @CheckForNull Label label)
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 provisioningCopyright © 2016–2019. All rights reserved.