Class K8SWorkerValidator.DenyAll

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

public static class K8SWorkerValidator.DenyAll extends Object implements K8SWorkerValidator
Simple validator to deny all overrides.
  • Constructor Details

    • DenyAll

      public DenyAll()
  • Method Details

    • checkPodFileOverride

      public void checkPodFileOverride(String userName, String podFileName)
      Description copied from interface: K8SWorkerValidator
      Validate whether the user may select the alternative pod template.
      Specified by:
      checkPodFileOverride in interface K8SWorkerValidator
      Parameters:
      userName - the effective user creating the worker
      podFileName - the requested pod template override
    • 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
      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)
    • checkContainerImage

      public void checkContainerImage(String userName, String containerImage)
      Description copied from interface: K8SWorkerValidator
      Validate whether the user may select the alternative pod template.
      Specified by:
      checkContainerImage in interface K8SWorkerValidator
      Parameters:
      userName - the effective user creating the worker
      containerImage - the requested container image override
    • checkCreateNewPersistentVolumeClaim

      public void checkCreateNewPersistentVolumeClaim(String userName, String pvcName)
      Description copied from interface: K8SWorkerValidator
      Validate whether the user may create a persistent volume claim when assigning one to a worker. If the claim already exists and is not mounted in another pod, then this will not affect a user's ability to mount it in their worker pods.
      Specified by:
      checkCreateNewPersistentVolumeClaim in interface K8SWorkerValidator
      Parameters:
      userName - the effective user creating the worker
      pvcName - the name of the PersistentVolumeClaim requested to be mounted