Class KubernetesProvisioningLimits


  • @Extension
    public final class KubernetesProvisioningLimits
    extends Object
    Implements provisioning limits for clouds and pod templates
    • Constructor Detail

      • KubernetesProvisioningLimits

        public KubernetesProvisioningLimits()
    • Method Detail

      • 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)