code generated by script for MatchLabelKeys in TopologySpreadConstraint

Signed-off-by: Alex Wang <wangqingcan1990@gmail.com>
This commit is contained in:
Alex Wang 2022-07-30 13:24:55 +08:00
parent f4bc904376
commit 86a2a85e7d
73 changed files with 1158 additions and 914 deletions

View File

@ -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",

View File

@ -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.",

View File

@ -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.",

View File

@ -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.",

View File

@ -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
}

View File

@ -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
}

View File

@ -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"},
},

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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 {

View File

@ -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
}

View File

@ -1616,7 +1616,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -854,6 +854,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1618,7 +1618,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -852,6 +852,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -856,6 +856,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -852,6 +852,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1616,7 +1616,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -854,6 +854,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1618,7 +1618,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -852,6 +852,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1670,7 +1670,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -887,6 +887,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1621,7 +1621,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -851,6 +851,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1670,7 +1670,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -887,6 +887,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1664,7 +1664,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -884,6 +884,8 @@ template:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1558,7 +1558,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -802,6 +802,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1601,7 +1601,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -835,6 +835,8 @@ template:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1607,7 +1607,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -840,6 +840,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1616,7 +1616,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1617,7 +1617,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -856,6 +856,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -1618,7 +1618,10 @@
},
"minDomains": 5,
"nodeAffinityPolicy": "nodeAffinityPolicyValue",
"nodeTaintsPolicy": "nodeTaintsPolicyValue"
"nodeTaintsPolicy": "nodeTaintsPolicyValue",
"matchLabelKeys": [
"matchLabelKeysValue"
]
}
],
"setHostnameAsFQDN": true,

View File

@ -846,6 +846,8 @@ spec:
- valuesValue
matchLabels:
matchLabelsKey: matchLabelsValue
matchLabelKeys:
- matchLabelKeysValue
maxSkew: 1
minDomains: 5
nodeAffinityPolicy: nodeAffinityPolicyValue

View File

@ -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
}

View File

@ -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