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
Simple validator to deny all overrides.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.remotequery.process.K8SWorkerValidator
K8SWorkerValidator.AllowAll, K8SWorkerValidator.AllowCpu, K8SWorkerValidator.DenyAll, K8SWorkerValidator.K8SWorkerValidationException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckContainerImage(String userName, String containerImage) Validate whether the user may select the alternative pod template.voidcheckCpuShares(String userName, double cpuShares) Validate whether the user may select the alternative pod template.voidcheckCreateNewPersistentVolumeClaim(String userName, String pvcName) Validate whether the user may create a persistent volume claim when assigning one to a worker.voidcheckPodFileOverride(String userName, String podFileName) Validate whether the user may select the alternative pod template.
-
Constructor Details
-
DenyAll
public DenyAll()
-
-
Method Details
-
checkPodFileOverride
Description copied from interface:K8SWorkerValidatorValidate whether the user may select the alternative pod template.- Specified by:
checkPodFileOverridein interfaceK8SWorkerValidator- Parameters:
userName- the effective user creating the workerpodFileName- the requested pod template override
-
checkContainerImage
Description copied from interface:K8SWorkerValidatorValidate whether the user may select the alternative pod template.- Specified by:
checkContainerImagein interfaceK8SWorkerValidator- Parameters:
userName- the effective user creating the workercontainerImage- the requested container image override
-
checkCreateNewPersistentVolumeClaim
Description copied from interface:K8SWorkerValidatorValidate 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:
checkCreateNewPersistentVolumeClaimin interfaceK8SWorkerValidator- Parameters:
userName- the effective user creating the workerpvcName- the name of the PersistentVolumeClaim requested to be mounted
-