mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix comment about PodAffinityTerm in api
This commit is contained in:
parent
0b597b51d6
commit
26bd052ce2
@ -2338,13 +2338,13 @@ type PodAffinityTerm struct {
|
|||||||
LabelSelector *metav1.LabelSelector
|
LabelSelector *metav1.LabelSelector
|
||||||
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
||||||
// null or empty list means "this pod's namespace"
|
// null or empty list means "this pod's namespace"
|
||||||
|
// +optional
|
||||||
Namespaces []string
|
Namespaces []string
|
||||||
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
||||||
// 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.
|
||||||
// Empty topologyKey is not allowed.
|
// Empty topologyKey is not allowed.
|
||||||
// +optional
|
|
||||||
TopologyKey string
|
TopologyKey string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2620,6 +2620,7 @@ message PodAffinityTerm {
|
|||||||
|
|
||||||
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
||||||
// null or empty list means "this pod's namespace"
|
// null or empty list means "this pod's namespace"
|
||||||
|
// +optional
|
||||||
repeated string namespaces = 2;
|
repeated string namespaces = 2;
|
||||||
|
|
||||||
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
||||||
|
@ -2587,6 +2587,7 @@ type PodAffinityTerm struct {
|
|||||||
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`
|
LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty" protobuf:"bytes,1,opt,name=labelSelector"`
|
||||||
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
// namespaces specifies which namespaces the labelSelector applies to (matches against);
|
||||||
// null or empty list means "this pod's namespace"
|
// null or empty list means "this pod's namespace"
|
||||||
|
// +optional
|
||||||
Namespaces []string `json:"namespaces,omitempty" protobuf:"bytes,2,rep,name=namespaces"`
|
Namespaces []string `json:"namespaces,omitempty" protobuf:"bytes,2,rep,name=namespaces"`
|
||||||
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
|
||||||
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user