Class K8SWorkerValidator.AllowCpu

java.lang.Object
com.illumon.iris.db.tables.remotequery.process.K8SWorkerValidator.DenyAll
com.illumon.iris.db.tables.remotequery.process.K8SWorkerValidator.AllowCpu
All Implemented Interfaces:
K8SWorkerValidator
Enclosing interface:
K8SWorkerValidator

public static class K8SWorkerValidator.AllowCpu extends K8SWorkerValidator.DenyAll
Simple validator to allow CPU shares to be overridden.
  • Constructor Details

    • AllowCpu

      public AllowCpu()
  • Method Details

    • checkCpuShares

      public void checkCpuShares(String userName, double cpuShares)
      Description copied from interface: K8SWorkerValidator
      Validate whether the user may select the alternative pod template.
      Specified by:
      checkCpuShares in interface K8SWorkerValidator
      Overrides:
      checkCpuShares in class K8SWorkerValidator.DenyAll
      Parameters:
      userName - the effective user creating the worker
      cpuShares - the requested CPU request/limit override in units of cores (e.g., 1.5 means 1500m in a YAML file)