Merge pull request #50257 from diegs/merge-fix
Automatic merge from submit-queue (batch tested with PRs 50257, 50247, 50665, 50554, 51077) Remove incorrect patch-merge directives. **What this PR does / why we need it**: Directives were misplaced for the following types: - MatchExpressions - Taints - Tolerations Per the discussion in #46547, we cannot fix these because it would cause backwards-compatibility problems. Instead, remove the incorrect ones so they don't mislead users. This has no impact on behavior. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: Takes over from #46547 by @aaronlevy **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -59968,9 +59968,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"key": {
|
"key": {
|
||||||
"description": "The label key that the selector applies to.",
|
"description": "The label key that the selector applies to.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"x-kubernetes-patch-merge-key": "key",
|
|
||||||
"x-kubernetes-patch-strategy": "merge"
|
|
||||||
},
|
},
|
||||||
"operator": {
|
"operator": {
|
||||||
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
|
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
|
||||||
@@ -62085,9 +62083,7 @@
|
|||||||
},
|
},
|
||||||
"key": {
|
"key": {
|
||||||
"description": "Required. The taint key to be applied to a node.",
|
"description": "Required. The taint key to be applied to a node.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"x-kubernetes-patch-merge-key": "key",
|
|
||||||
"x-kubernetes-patch-strategy": "merge"
|
|
||||||
},
|
},
|
||||||
"timeAdded": {
|
"timeAdded": {
|
||||||
"description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
|
"description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
|
||||||
@@ -62108,9 +62104,7 @@
|
|||||||
},
|
},
|
||||||
"key": {
|
"key": {
|
||||||
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
|
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"x-kubernetes-patch-merge-key": "key",
|
|
||||||
"x-kubernetes-patch-strategy": "merge"
|
|
||||||
},
|
},
|
||||||
"operator": {
|
"operator": {
|
||||||
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
|
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
|
||||||
|
@@ -10885,9 +10885,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"key": {
|
"key": {
|
||||||
"description": "The label key that the selector applies to.",
|
"description": "The label key that the selector applies to.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"x-kubernetes-patch-merge-key": "key",
|
|
||||||
"x-kubernetes-patch-strategy": "merge"
|
|
||||||
},
|
},
|
||||||
"operator": {
|
"operator": {
|
||||||
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
|
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
|
||||||
@@ -11937,9 +11935,7 @@
|
|||||||
},
|
},
|
||||||
"key": {
|
"key": {
|
||||||
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
|
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"x-kubernetes-patch-merge-key": "key",
|
|
||||||
"x-kubernetes-patch-strategy": "merge"
|
|
||||||
},
|
},
|
||||||
"operator": {
|
"operator": {
|
||||||
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
|
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
|
||||||
|
@@ -1661,8 +1661,6 @@ message NodeSelector {
|
|||||||
// that relates the key and values.
|
// that relates the key and values.
|
||||||
message NodeSelectorRequirement {
|
message NodeSelectorRequirement {
|
||||||
// The label key that the selector applies to.
|
// The label key that the selector applies to.
|
||||||
// +patchMergeKey=key
|
|
||||||
// +patchStrategy=merge
|
|
||||||
optional string key = 1;
|
optional string key = 1;
|
||||||
|
|
||||||
// Represents a key's relationship to a set of values.
|
// Represents a key's relationship to a set of values.
|
||||||
@@ -3894,8 +3892,6 @@ message TCPSocketAction {
|
|||||||
// any pod that does not tolerate the Taint.
|
// any pod that does not tolerate the Taint.
|
||||||
message Taint {
|
message Taint {
|
||||||
// Required. The taint key to be applied to a node.
|
// Required. The taint key to be applied to a node.
|
||||||
// +patchMergeKey=key
|
|
||||||
// +patchStrategy=merge
|
|
||||||
optional string key = 1;
|
optional string key = 1;
|
||||||
|
|
||||||
// Required. The taint value corresponding to the taint key.
|
// Required. The taint value corresponding to the taint key.
|
||||||
@@ -3919,8 +3915,6 @@ message Toleration {
|
|||||||
// Key is the taint key that the toleration applies to. Empty means match all taint keys.
|
// Key is the taint key that the toleration applies to. Empty means match all taint keys.
|
||||||
// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
|
// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=key
|
|
||||||
// +patchStrategy=merge
|
|
||||||
optional string key = 1;
|
optional string key = 1;
|
||||||
|
|
||||||
// Operator represents a key's relationship to the value.
|
// Operator represents a key's relationship to the value.
|
||||||
|
@@ -2119,9 +2119,7 @@ type NodeSelectorTerm struct {
|
|||||||
// that relates the key and values.
|
// that relates the key and values.
|
||||||
type NodeSelectorRequirement struct {
|
type NodeSelectorRequirement struct {
|
||||||
// The label key that the selector applies to.
|
// The label key that the selector applies to.
|
||||||
// +patchMergeKey=key
|
Key string `json:"key" protobuf:"bytes,1,opt,name=key"`
|
||||||
// +patchStrategy=merge
|
|
||||||
Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
|
|
||||||
// Represents a key's relationship to a set of values.
|
// Represents a key's relationship to a set of values.
|
||||||
// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
|
// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
|
||||||
Operator NodeSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=NodeSelectorOperator"`
|
Operator NodeSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=NodeSelectorOperator"`
|
||||||
@@ -2307,9 +2305,7 @@ type PreferredSchedulingTerm struct {
|
|||||||
// any pod that does not tolerate the Taint.
|
// any pod that does not tolerate the Taint.
|
||||||
type Taint struct {
|
type Taint struct {
|
||||||
// Required. The taint key to be applied to a node.
|
// Required. The taint key to be applied to a node.
|
||||||
// +patchMergeKey=key
|
Key string `json:"key" protobuf:"bytes,1,opt,name=key"`
|
||||||
// +patchStrategy=merge
|
|
||||||
Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
|
|
||||||
// Required. The taint value corresponding to the taint key.
|
// Required. The taint value corresponding to the taint key.
|
||||||
// +optional
|
// +optional
|
||||||
Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
|
Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"`
|
||||||
@@ -2351,9 +2347,7 @@ type Toleration struct {
|
|||||||
// Key is the taint key that the toleration applies to. Empty means match all taint keys.
|
// Key is the taint key that the toleration applies to. Empty means match all taint keys.
|
||||||
// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
|
// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=key
|
Key string `json:"key,omitempty" protobuf:"bytes,1,opt,name=key"`
|
||||||
// +patchStrategy=merge
|
|
||||||
Key string `json:"key,omitempty" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"`
|
|
||||||
// Operator represents a key's relationship to the value.
|
// Operator represents a key's relationship to the value.
|
||||||
// Valid operators are Exists and Equal. Defaults to Equal.
|
// Valid operators are Exists and Equal. Defaults to Equal.
|
||||||
// Exists is equivalent to wildcard for value, so that a pod can
|
// Exists is equivalent to wildcard for value, so that a pod can
|
||||||
|
Reference in New Issue
Block a user