Interface WorkerTolerationValuesService
- All Known Implementing Classes:
SingleLiteralWorkerTolerationValuesService,UserGroupWorkerTolerationValuesService
public interface WorkerTolerationValuesService
A service for getting the toleration values for a worker. The toleration values are used to determine which nodes the
worker can be scheduled on in a Kubernetes cluster. If the toleration matches a corresponding taint on a Kubernetes
node then the Pod can be run on it. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
for more information.
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name of the toleration values service.getTolerationValues(K8SWorkerImpl worker, IrisGroupProvider irisGroupProvider, com.fishlib.io.logger.Logger log) Get the toleration values for a worker.default voidsetArgumentString(String argumentString) Set an arguments String to be read by the valuesService.
-
Method Details
-
getName
String getName()Get the name of the toleration values service.- Returns:
- The name of the toleration values service.
-
getTolerationValues
List<String> getTolerationValues(K8SWorkerImpl worker, IrisGroupProvider irisGroupProvider, com.fishlib.io.logger.Logger log) Get the toleration values for a worker.- Parameters:
worker- The worker for which we are getting the toleration values.log- A logger.- Returns:
- The toleration values for the worker.
-
setArgumentString
Set an arguments String to be read by the valuesService. Not all valuesServices will implement this.- Parameters:
argumentString-
-