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
  • Constructor Details

    • KubernetesProvisioningLimits

      public KubernetesProvisioningLimits()
  • Method Details

    • 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 on
      podTemplate - the pod template used to schedule the agent
      numExecutors - 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 on
      podTemplate - the pod template used to schedule the agent
      numExecutors - the number of executors (pretty much always 1)