mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Merge pull request #54797 from guangxuli/fix_inconsistent_description
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix the inconsistent description of TopologyKey in PodAffinityTerm **What this PR does / why we need it**: Clarify the confusing of inconsistent description. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # Just fix #54276 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
5
api/openapi-spec/swagger.json
generated
5
api/openapi-spec/swagger.json
generated
@@ -75232,6 +75232,9 @@
|
||||
},
|
||||
"io.k8s.api.core.v1.PodAffinityTerm": {
|
||||
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running",
|
||||
"required": [
|
||||
"topologyKey"
|
||||
],
|
||||
"properties": {
|
||||
"labelSelector": {
|
||||
"description": "A label query over a set of resources, in this case pods.",
|
||||
@@ -75245,7 +75248,7 @@
|
||||
}
|
||||
},
|
||||
"topologyKey": {
|
||||
"description": "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 whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. For PreferredDuringScheduling pod anti-affinity, empty topologyKey is interpreted as \"all topologies\" (\"all topologies\" here means all the topologyKeys indicated by scheduler command-line argument --failure-domains); for affinity and for RequiredDuringScheduling pod anti-affinity, empty topologyKey is not allowed.",
|
||||
"description": "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 whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user