code generated by script for MatchLabelKeys in TopologySpreadConstraint
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
This commit is contained in:
parent
f4bc904376
commit
86a2a85e7d
8
api/openapi-spec/swagger.json
generated
8
api/openapi-spec/swagger.json
generated
@ -9652,6 +9652,14 @@
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector",
|
||||
"description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain."
|
||||
},
|
||||
"matchLabelKeys": {
|
||||
"description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"maxSkew": {
|
||||
"description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.",
|
||||
"format": "int32",
|
||||
|
@ -7251,6 +7251,15 @@
|
||||
],
|
||||
"description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain."
|
||||
},
|
||||
"matchLabelKeys": {
|
||||
"description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
"items": {
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"maxSkew": {
|
||||
"default": 0,
|
||||
"description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.",
|
||||
|
@ -4348,6 +4348,15 @@
|
||||
],
|
||||
"description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain."
|
||||
},
|
||||
"matchLabelKeys": {
|
||||
"description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
"items": {
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"maxSkew": {
|
||||
"default": 0,
|
||||
"description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.",
|
||||
|
@ -3427,6 +3427,15 @@
|
||||
],
|
||||
"description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain."
|
||||
},
|
||||
"matchLabelKeys": {
|
||||
"description": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
"items": {
|
||||
"default": "",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"maxSkew": {
|
||||
"default": 0,
|
||||
"description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.",
|
||||
|
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
2
pkg/apis/core/v1/zz_generated.conversion.go
generated
@ -7999,6 +7999,7 @@ func autoConvert_v1_TopologySpreadConstraint_To_core_TopologySpreadConstraint(in
|
||||
out.MinDomains = (*int32)(unsafe.Pointer(in.MinDomains))
|
||||
out.NodeAffinityPolicy = (*core.NodeInclusionPolicy)(unsafe.Pointer(in.NodeAffinityPolicy))
|
||||
out.NodeTaintsPolicy = (*core.NodeInclusionPolicy)(unsafe.Pointer(in.NodeTaintsPolicy))
|
||||
out.MatchLabelKeys = *(*[]string)(unsafe.Pointer(&in.MatchLabelKeys))
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -8015,6 +8016,7 @@ func autoConvert_core_TopologySpreadConstraint_To_v1_TopologySpreadConstraint(in
|
||||
out.MinDomains = (*int32)(unsafe.Pointer(in.MinDomains))
|
||||
out.NodeAffinityPolicy = (*v1.NodeInclusionPolicy)(unsafe.Pointer(in.NodeAffinityPolicy))
|
||||
out.NodeTaintsPolicy = (*v1.NodeInclusionPolicy)(unsafe.Pointer(in.NodeTaintsPolicy))
|
||||
out.MatchLabelKeys = *(*[]string)(unsafe.Pointer(&in.MatchLabelKeys))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
5
pkg/apis/core/zz_generated.deepcopy.go
generated
5
pkg/apis/core/zz_generated.deepcopy.go
generated
@ -5649,6 +5649,11 @@ func (in *TopologySpreadConstraint) DeepCopyInto(out *TopologySpreadConstraint)
|
||||
*out = new(NodeInclusionPolicy)
|
||||
**out = **in
|
||||
}
|
||||
if in.MatchLabelKeys != nil {
|
||||
in, out := &in.MatchLabelKeys, &out.MatchLabelKeys
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
20
pkg/generated/openapi/zz_generated.openapi.go
generated
20
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -25458,6 +25458,26 @@ func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallb
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"matchLabelKeys": {
|
||||
VendorExtensible: spec.VendorExtensible{
|
||||
Extensions: spec.Extensions{
|
||||
"x-kubernetes-list-type": "atomic",
|
||||
},
|
||||
},
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
Type: []string{"array"},
|
||||
Items: &spec.SchemaOrArray{
|
||||
Schema: &spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: "",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"},
|
||||
},
|
||||
|
1837
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
1837
staging/src/k8s.io/api/core/v1/generated.pb.go
generated
File diff suppressed because it is too large
Load Diff
@ -5497,6 +5497,16 @@ message TopologySpreadConstraint {
|
||||
// This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
|
||||
// +optional
|
||||
optional string nodeTaintsPolicy = 7;
|
||||
|
||||
// MatchLabelKeys is a set of pod label keys to select the pods over which
|
||||
// spreading will be calculated. The keys are used to lookup values from the
|
||||
// incoming pod labels, those key-value labels are ANDed with labelSelector
|
||||
// to select the group of existing pods over which spreading will be calculated
|
||||
// for the incoming pod. Keys that don't exist in the incoming pod labels will
|
||||
// be ignored. A null or empty list means only match against labelSelector.
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
repeated string matchLabelKeys = 8;
|
||||
}
|
||||
|
||||
// TypedLocalObjectReference contains enough information to let you locate the
|
||||
|
@ -2408,6 +2408,7 @@ var map_TopologySpreadConstraint = map[string]string{
|
||||
"minDomains": "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: ",
|
||||
"nodeAffinityPolicy": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.",
|
||||
"nodeTaintsPolicy": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.",
|
||||
"matchLabelKeys": "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.",
|
||||
}
|
||||
|
||||
func (TopologySpreadConstraint) SwaggerDoc() map[string]string {
|
||||
|
@ -5664,6 +5664,11 @@ func (in *TopologySpreadConstraint) DeepCopyInto(out *TopologySpreadConstraint)
|
||||
*out = new(NodeInclusionPolicy)
|
||||
**out = **in
|
||||
}
|
||||
if in.MatchLabelKeys != nil {
|
||||
in, out := &in.MatchLabelKeys, &out.MatchLabelKeys
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -1616,7 +1616,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -854,6 +854,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1618,7 +1618,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -852,6 +852,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -856,6 +856,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -852,6 +852,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1616,7 +1616,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -854,6 +854,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1618,7 +1618,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -852,6 +852,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1670,7 +1670,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -887,6 +887,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1621,7 +1621,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/batch.v1.Job.pb
vendored
Binary file not shown.
@ -851,6 +851,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1670,7 +1670,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -887,6 +887,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1664,7 +1664,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -884,6 +884,8 @@ template:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1558,7 +1558,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
BIN
staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.pb
vendored
Binary file not shown.
@ -802,6 +802,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1601,7 +1601,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -835,6 +835,8 @@ template:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1607,7 +1607,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -840,6 +840,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1616,7 +1616,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1617,7 +1617,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -856,6 +856,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -1618,7 +1618,10 @@
|
||||
},
|
||||
"minDomains": 5,
|
||||
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
|
||||
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
|
||||
"matchLabelKeys": [
|
||||
"matchLabelKeysValue"
|
||||
]
|
||||
}
|
||||
],
|
||||
"setHostnameAsFQDN": true,
|
||||
|
Binary file not shown.
@ -846,6 +846,8 @@ spec:
|
||||
- valuesValue
|
||||
matchLabels:
|
||||
matchLabelsKey: matchLabelsValue
|
||||
matchLabelKeys:
|
||||
- matchLabelKeysValue
|
||||
maxSkew: 1
|
||||
minDomains: 5
|
||||
nodeAffinityPolicy: nodeAffinityPolicyValue
|
||||
|
@ -33,6 +33,7 @@ type TopologySpreadConstraintApplyConfiguration struct {
|
||||
MinDomains *int32 `json:"minDomains,omitempty"`
|
||||
NodeAffinityPolicy *v1.NodeInclusionPolicy `json:"nodeAffinityPolicy,omitempty"`
|
||||
NodeTaintsPolicy *v1.NodeInclusionPolicy `json:"nodeTaintsPolicy,omitempty"`
|
||||
MatchLabelKeys []string `json:"matchLabelKeys,omitempty"`
|
||||
}
|
||||
|
||||
// TopologySpreadConstraintApplyConfiguration constructs an declarative configuration of the TopologySpreadConstraint type for use with
|
||||
@ -96,3 +97,13 @@ func (b *TopologySpreadConstraintApplyConfiguration) WithNodeTaintsPolicy(value
|
||||
b.NodeTaintsPolicy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithMatchLabelKeys adds the given value to the MatchLabelKeys field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the MatchLabelKeys field.
|
||||
func (b *TopologySpreadConstraintApplyConfiguration) WithMatchLabelKeys(values ...string) *TopologySpreadConstraintApplyConfiguration {
|
||||
for i := range values {
|
||||
b.MatchLabelKeys = append(b.MatchLabelKeys, values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
@ -6858,6 +6858,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: labelSelector
|
||||
type:
|
||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
||||
- name: matchLabelKeys
|
||||
type:
|
||||
list:
|
||||
elementType:
|
||||
scalar: string
|
||||
elementRelationship: atomic
|
||||
- name: maxSkew
|
||||
type:
|
||||
scalar: numeric
|
||||
|
Loading…
Reference in New Issue
Block a user