Documentation ¶
Index ¶
Constants ¶
View Source
const (
// NodeFieldSelectorKeyNodeName field path use to select the Node
NodeFieldSelectorKeyNodeName = "metadata.name"
)
Variables ¶
This section is empty.
Functions ¶
func GetNodeNameFromAffinity ¶
GetNodeNameFromAffinity return the Node name from the pod affinity configuration
func ReplaceNodeNameNodeAffinity ¶
ReplaceNodeNameNodeAffinity replaces the RequiredDuringSchedulingIgnoredDuringExecution NodeAffinity of the given affinity with a new NodeAffinity that selects the given nodeName. Note that this function assumes that no NodeAffinity conflicts with the selected nodeName.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.