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
| Name | Type | Description |
|---|---|---|
| interruptible | bool | A 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.Affinity | A pointer to the Kubernetes Affinity object to which the node selector requirement will be added. |