Skip to main content

ApplyInterruptibleNodeSelectorRequirement

configures the node selector requirement of the node-affinity using the configuration specified.

def ApplyInterruptibleNodeSelectorRequirement(
interruptible: bool,
affinity: *v1.Affinity
)

Configures the node selector requirement of the node-affinity using the configuration specified.

Parameters

NameTypeDescription
interruptibleboolA boolean indicating whether to apply the interruptible or non-interruptible node selector requirement. If true, the interruptible requirement is used; otherwise, the non-interruptible requirement is used.
affinity*v1.AffinityA pointer to the Kubernetes Affinity object to which the node selector requirement will be added.