mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
update the inconsistent description of TopologyKey in PodAffinityTerm
This commit is contained in:
parent
c17b9d3de1
commit
0bb376e5e0
@ -2486,11 +2486,8 @@ type PodAffinityTerm struct {
|
|||||||
// the labelSelector in the specified namespaces, where co-located is defined as running on a node
|
// the labelSelector in the specified namespaces, where co-located is defined as running on a node
|
||||||
// whose value of the label with key topologyKey matches that of any node on which any of the
|
// whose value of the label with key topologyKey matches that of any node on which any of the
|
||||||
// selected pods is running.
|
// selected pods is running.
|
||||||
// For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as "all topologies"
|
// Empty topologyKey is not allowed.
|
||||||
// ("all topologies" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains);
|
TopologyKey string `json:"topologyKey" protobuf:"bytes,3,opt,name=topologyKey"`
|
||||||
// for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.
|
|
||||||
// +optional
|
|
||||||
TopologyKey string `json:"topologyKey,omitempty" protobuf:"bytes,3,opt,name=topologyKey"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Node affinity is a group of node affinity scheduling rules.
|
// Node affinity is a group of node affinity scheduling rules.
|
||||||
|
Loading…
Reference in New Issue
Block a user