Class KubernetesProvisioningLimits
- java.lang.Object
-
- org.csanchez.jenkins.plugins.kubernetes.KubernetesProvisioningLimits
-
@Extension public final class KubernetesProvisioningLimits extends Object
Implements provisioning limits for clouds and pod templates
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubernetesProvisioningLimits.NodeListenerImpl
-
Constructor Summary
Constructors Constructor Description KubernetesProvisioningLimits()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KubernetesProvisioningLimits
get()
boolean
register(KubernetesCloud cloud, PodTemplate podTemplate, int numExecutors)
Register executorsvoid
unregister(KubernetesCloud cloud, PodTemplate podTemplate, int numExecutors)
Unregisters executors, when an agent is terminated
-
-
-
Method Detail
-
get
public static KubernetesProvisioningLimits get()
- Returns:
- the singleton instance
-
register
public boolean register(@NonNull KubernetesCloud cloud, @NonNull PodTemplate podTemplate, int numExecutors)
Register executors- Parameters:
cloud
- the kubernetes cloud the executors will be onpodTemplate
- the pod template used to schedule the agentnumExecutors
- the number of executors (pretty much always 1)
-
unregister
public void unregister(@NonNull KubernetesCloud cloud, @NonNull PodTemplate podTemplate, int numExecutors)
Unregisters executors, when an agent is terminated- Parameters:
cloud
- the kubernetes cloud the executors were onpodTemplate
- the pod template used to schedule the agentnumExecutors
- the number of executors (pretty much always 1)
-
-