mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-16 06:23:16 +00:00
Merge pull request #113485 from MikeSpreitzer/apf-borrowing
Add borrowing between priority levels in APF Kubernetes-commit: 1193a9abcbd6c6ce6fc7d4ce38872f1933ef5159
This commit is contained in:
commit
1c7a870d4f
@ -23,6 +23,8 @@ package v1alpha1
|
|||||||
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
||||||
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
||||||
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
||||||
|
LendablePercent *int32 `json:"lendablePercent,omitempty"`
|
||||||
|
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
||||||
@ -46,3 +48,19 @@ func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLimitResponse(
|
|||||||
b.LimitResponse = value
|
b.LimitResponse = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithLendablePercent sets the LendablePercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the LendablePercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLendablePercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.LendablePercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithBorrowingLimitPercent sets the BorrowingLimitPercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the BorrowingLimitPercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithBorrowingLimitPercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.BorrowingLimitPercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -23,6 +23,8 @@ package v1beta1
|
|||||||
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
||||||
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
||||||
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
||||||
|
LendablePercent *int32 `json:"lendablePercent,omitempty"`
|
||||||
|
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
||||||
@ -46,3 +48,19 @@ func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLimitResponse(
|
|||||||
b.LimitResponse = value
|
b.LimitResponse = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithLendablePercent sets the LendablePercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the LendablePercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLendablePercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.LendablePercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithBorrowingLimitPercent sets the BorrowingLimitPercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the BorrowingLimitPercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithBorrowingLimitPercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.BorrowingLimitPercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -23,6 +23,8 @@ package v1beta2
|
|||||||
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
||||||
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
AssuredConcurrencyShares *int32 `json:"assuredConcurrencyShares,omitempty"`
|
||||||
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
||||||
|
LendablePercent *int32 `json:"lendablePercent,omitempty"`
|
||||||
|
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
||||||
@ -46,3 +48,19 @@ func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLimitResponse(
|
|||||||
b.LimitResponse = value
|
b.LimitResponse = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithLendablePercent sets the LendablePercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the LendablePercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLendablePercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.LendablePercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithBorrowingLimitPercent sets the BorrowingLimitPercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the BorrowingLimitPercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithBorrowingLimitPercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.BorrowingLimitPercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -23,6 +23,8 @@ package v1beta3
|
|||||||
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
type LimitedPriorityLevelConfigurationApplyConfiguration struct {
|
||||||
NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"`
|
NominalConcurrencyShares *int32 `json:"nominalConcurrencyShares,omitempty"`
|
||||||
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
LimitResponse *LimitResponseApplyConfiguration `json:"limitResponse,omitempty"`
|
||||||
|
LendablePercent *int32 `json:"lendablePercent,omitempty"`
|
||||||
|
BorrowingLimitPercent *int32 `json:"borrowingLimitPercent,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
// LimitedPriorityLevelConfigurationApplyConfiguration constructs an declarative configuration of the LimitedPriorityLevelConfiguration type for use with
|
||||||
@ -46,3 +48,19 @@ func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLimitResponse(
|
|||||||
b.LimitResponse = value
|
b.LimitResponse = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithLendablePercent sets the LendablePercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the LendablePercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithLendablePercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.LendablePercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithBorrowingLimitPercent sets the BorrowingLimitPercent field in the declarative configuration to the given value
|
||||||
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
|
// If called multiple times, the BorrowingLimitPercent field is set to the value of the last call.
|
||||||
|
func (b *LimitedPriorityLevelConfigurationApplyConfiguration) WithBorrowingLimitPercent(value int32) *LimitedPriorityLevelConfigurationApplyConfiguration {
|
||||||
|
b.BorrowingLimitPercent = &value
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
@ -8608,6 +8608,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
default: 0
|
default: 0
|
||||||
|
- name: borrowingLimitPercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
|
- name: lendablePercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: limitResponse
|
- name: limitResponse
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.flowcontrol.v1alpha1.LimitResponse
|
namedType: io.k8s.api.flowcontrol.v1alpha1.LimitResponse
|
||||||
@ -8916,6 +8922,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
default: 0
|
default: 0
|
||||||
|
- name: borrowingLimitPercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
|
- name: lendablePercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: limitResponse
|
- name: limitResponse
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.flowcontrol.v1beta1.LimitResponse
|
namedType: io.k8s.api.flowcontrol.v1beta1.LimitResponse
|
||||||
@ -9224,6 +9236,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
type:
|
type:
|
||||||
scalar: numeric
|
scalar: numeric
|
||||||
default: 0
|
default: 0
|
||||||
|
- name: borrowingLimitPercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
|
- name: lendablePercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: limitResponse
|
- name: limitResponse
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.flowcontrol.v1beta2.LimitResponse
|
namedType: io.k8s.api.flowcontrol.v1beta2.LimitResponse
|
||||||
@ -9528,6 +9546,12 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration
|
- name: io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
- name: borrowingLimitPercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
|
- name: lendablePercent
|
||||||
|
type:
|
||||||
|
scalar: numeric
|
||||||
- name: limitResponse
|
- name: limitResponse
|
||||||
type:
|
type:
|
||||||
namedType: io.k8s.api.flowcontrol.v1beta3.LimitResponse
|
namedType: io.k8s.api.flowcontrol.v1beta3.LimitResponse
|
||||||
|
4
go.mod
4
go.mod
@ -24,7 +24,7 @@ require (
|
|||||||
golang.org/x/term v0.1.0
|
golang.org/x/term v0.1.0
|
||||||
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
|
||||||
google.golang.org/protobuf v1.28.1
|
google.golang.org/protobuf v1.28.1
|
||||||
k8s.io/api v0.0.0-20221108053748-98c1aa6b3d0a
|
k8s.io/api v0.0.0-20221109132724-f967e4429b0b
|
||||||
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5
|
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5
|
||||||
k8s.io/klog/v2 v2.80.1
|
k8s.io/klog/v2 v2.80.1
|
||||||
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280
|
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280
|
||||||
@ -59,6 +59,6 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
replace (
|
replace (
|
||||||
k8s.io/api => k8s.io/api v0.0.0-20221108053748-98c1aa6b3d0a
|
k8s.io/api => k8s.io/api v0.0.0-20221109132724-f967e4429b0b
|
||||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5
|
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5
|
||||||
)
|
)
|
||||||
|
4
go.sum
4
go.sum
@ -476,8 +476,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
|
|||||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
k8s.io/api v0.0.0-20221108053748-98c1aa6b3d0a h1:GaCla9HtNyi63kysI/cyeA4bv6wRkIyuiUeXpaTF+dw=
|
k8s.io/api v0.0.0-20221109132724-f967e4429b0b h1:mBKwVVKzt/ci584mcXt/0WP91LQ0e0roYDkGIyFeanM=
|
||||||
k8s.io/api v0.0.0-20221108053748-98c1aa6b3d0a/go.mod h1:PSXY9/fSNyKgKHUU+O9scnZiW8m+V1znqk49oI6hAEY=
|
k8s.io/api v0.0.0-20221109132724-f967e4429b0b/go.mod h1:j2jT1HZpNN4eUpl6xrwjWC1amreYNCdsevVdZMhBz5o=
|
||||||
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5 h1:iFAMJ1evvrO6X7dS7EKujS6An+bp3u/dD6opu8rn0QA=
|
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5 h1:iFAMJ1evvrO6X7dS7EKujS6An+bp3u/dD6opu8rn0QA=
|
||||||
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5/go.mod h1:VXMmlsE7YRJ5vyAyWpkKIfFkEbDNpVs0ObpkuQf1WfM=
|
k8s.io/apimachinery v0.0.0-20221108055230-fd8a60496be5/go.mod h1:VXMmlsE7YRJ5vyAyWpkKIfFkEbDNpVs0ObpkuQf1WfM=
|
||||||
k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4=
|
k8s.io/klog/v2 v2.80.1 h1:atnLQ121W371wYYFawwYx1aEY2eUfs4l3J72wtgAwV4=
|
||||||
|
Loading…
Reference in New Issue
Block a user