mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
rebase: update kubernetes to latest
updating the kubernetes release to the latest in main go.mod Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
63c4c05b35
commit
5a66991bb3
10
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/lease.go
generated
vendored
10
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/lease.go
generated
vendored
@ -27,7 +27,7 @@ import (
|
||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||
)
|
||||
|
||||
// LeaseApplyConfiguration represents an declarative configuration of the Lease type for use
|
||||
// LeaseApplyConfiguration represents a declarative configuration of the Lease type for use
|
||||
// with apply.
|
||||
type LeaseApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
@ -35,7 +35,7 @@ type LeaseApplyConfiguration struct {
|
||||
Spec *LeaseSpecApplyConfiguration `json:"spec,omitempty"`
|
||||
}
|
||||
|
||||
// Lease constructs an declarative configuration of the Lease type for use with
|
||||
// Lease constructs a declarative configuration of the Lease type for use with
|
||||
// apply.
|
||||
func Lease(name, namespace string) *LeaseApplyConfiguration {
|
||||
b := &LeaseApplyConfiguration{}
|
||||
@ -247,3 +247,9 @@ func (b *LeaseApplyConfiguration) WithSpec(value *LeaseSpecApplyConfiguration) *
|
||||
b.Spec = value
|
||||
return b
|
||||
}
|
||||
|
||||
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||
func (b *LeaseApplyConfiguration) GetName() *string {
|
||||
b.ensureObjectMetaApplyConfigurationExists()
|
||||
return b.Name
|
||||
}
|
||||
|
33
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/leasespec.go
generated
vendored
33
vendor/k8s.io/client-go/applyconfigurations/coordination/v1/leasespec.go
generated
vendored
@ -19,20 +19,23 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
coordinationv1 "k8s.io/api/coordination/v1"
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// LeaseSpecApplyConfiguration represents an declarative configuration of the LeaseSpec type for use
|
||||
// LeaseSpecApplyConfiguration represents a declarative configuration of the LeaseSpec type for use
|
||||
// with apply.
|
||||
type LeaseSpecApplyConfiguration struct {
|
||||
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
||||
AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"`
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
||||
AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"`
|
||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||
Strategy *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
||||
PreferredHolder *string `json:"preferredHolder,omitempty"`
|
||||
}
|
||||
|
||||
// LeaseSpecApplyConfiguration constructs an declarative configuration of the LeaseSpec type for use with
|
||||
// LeaseSpecApplyConfiguration constructs a declarative configuration of the LeaseSpec type for use with
|
||||
// apply.
|
||||
func LeaseSpec() *LeaseSpecApplyConfiguration {
|
||||
return &LeaseSpecApplyConfiguration{}
|
||||
@ -77,3 +80,19 @@ func (b *LeaseSpecApplyConfiguration) WithLeaseTransitions(value int32) *LeaseSp
|
||||
b.LeaseTransitions = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithStrategy sets the Strategy 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 Strategy field is set to the value of the last call.
|
||||
func (b *LeaseSpecApplyConfiguration) WithStrategy(value coordinationv1.CoordinatedLeaseStrategy) *LeaseSpecApplyConfiguration {
|
||||
b.Strategy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithPreferredHolder sets the PreferredHolder 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 PreferredHolder field is set to the value of the last call.
|
||||
func (b *LeaseSpecApplyConfiguration) WithPreferredHolder(value string) *LeaseSpecApplyConfiguration {
|
||||
b.PreferredHolder = &value
|
||||
return b
|
||||
}
|
||||
|
Reference in New Issue
Block a user