mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-23 13:47:19 +00:00
code generated by script for MatchLabelKeys in TopologySpreadConstraint
Signed-off-by: Alex Wang <wangqingcan1990@gmail.com> Kubernetes-commit: 86a2a85e7dd0a650020bf407a6eb85b956653539
This commit is contained in:
parent
95367f2044
commit
2190b2f23b
@ -33,6 +33,7 @@ type TopologySpreadConstraintApplyConfiguration struct {
|
|||||||
MinDomains *int32 `json:"minDomains,omitempty"`
|
MinDomains *int32 `json:"minDomains,omitempty"`
|
||||||
NodeAffinityPolicy *v1.NodeInclusionPolicy `json:"nodeAffinityPolicy,omitempty"`
|
NodeAffinityPolicy *v1.NodeInclusionPolicy `json:"nodeAffinityPolicy,omitempty"`
|
||||||
NodeTaintsPolicy *v1.NodeInclusionPolicy `json:"nodeTaintsPolicy,omitempty"`
|
NodeTaintsPolicy *v1.NodeInclusionPolicy `json:"nodeTaintsPolicy,omitempty"`
|
||||||
|
MatchLabelKeys []string `json:"matchLabelKeys,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TopologySpreadConstraintApplyConfiguration constructs an declarative configuration of the TopologySpreadConstraint type for use with
|
// TopologySpreadConstraintApplyConfiguration constructs an declarative configuration of the TopologySpreadConstraint type for use with
|
||||||
@ -96,3 +97,13 @@ func (b *TopologySpreadConstraintApplyConfiguration) WithNodeTaintsPolicy(value
|
|||||||
b.NodeTaintsPolicy = &value
|
b.NodeTaintsPolicy = &value
|
||||||
return b
|
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
|
- name: labelSelector
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
namedType: io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector
|
||||||
|
- name: matchLabelKeys
|
||||||
|
type:
|
||||||
|
list:
|
||||||
|
elementType:
|
||||||
|
scalar: string
|
||||||
|
elementRelationship: atomic
|
||||||
- name: maxSkew
|
- name: maxSkew
|
||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
|
Loading…
Reference in New Issue
Block a user