Class KubernetesProvisioningLimits
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.KubernetesProvisioningLimits
Implements provisioning limits for clouds and pod templates
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesProvisioningLimitsget()booleanregister(KubernetesCloud cloud, PodTemplate podTemplate, int numExecutors) Register executorsvoidunregister(KubernetesCloud cloud, PodTemplate podTemplate, int numExecutors) Unregisters executors, when an agent is terminated
-
Constructor Details
-
KubernetesProvisioningLimits
public KubernetesProvisioningLimits()
-
-
Method Details
-
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)
-