Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PluginName indicates name of volcano scheduler plugin. PluginName = "predicates" // NodeAffinityEnable is the key for enabling Node Affinity Predicates in scheduler configmap NodeAffinityEnable = "predicate.NodeAffinityEnable" // NodePortsEnable is the key for enabling Node Port Predicates in scheduler configmap NodePortsEnable = "predicate.NodePortsEnable" // TaintTolerationEnable is the key for enabling Taint Toleration Predicates in scheduler configmap TaintTolerationEnable = "predicate.TaintTolerationEnable" // PodAffinityEnable is the key for enabling Pod Affinity Predicates in scheduler configmap PodAffinityEnable = "predicate.PodAffinityEnable" // NodeVolumeLimitsEnable is the key for enabling Node Volume Limits Predicates in scheduler configmap NodeVolumeLimitsEnable = "predicate.NodeVolumeLimitsEnable" // VolumeZoneEnable is the key for enabling Volume Zone Predicates in scheduler configmap VolumeZoneEnable = "predicate.VolumeZoneEnable" // PodTopologySpreadEnable is the key for enabling Pod Topology Spread Predicates in scheduler configmap PodTopologySpreadEnable = "predicate.PodTopologySpreadEnable" // CachePredicate control cache predicate feature CachePredicate = "predicate.CacheEnable" // ProportionalPredicate is the key for enabling Proportional Predicate in YAML ProportionalPredicate = "predicate.ProportionalEnable" // ProportionalResource is the key for additional resource key name ProportionalResource = "predicate.resources" // ProportionalResourcesPrefix is the key prefix for additional resource key name ProportionalResourcesPrefix = ProportionalResource + "." )
Variables ¶
This section is empty.
Functions ¶
func ShouldAbort ¶ added in v1.11.0
ShouldAbort determines if the given status indicates that execution should be aborted. It checks if the status code corresponds to any of the following conditions: - UnschedulableAndUnresolvable: Indicates the task cannot be scheduled and resolved. - Error: Represents an error state that prevents further execution. - Wait: Suggests that the process should pause and not proceed further. - Skip: Indicates that the operation should be skipped entirely.
Parameters: - status (*api.Status): The status object to evaluate.
Returns: - bool: True if the status code matches any of the abort conditions; false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.