- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for leaseTransitions (0.24 sec)
-
pkg/apis/coordination/validation/validation.go
allErrs = append(allErrs, field.Invalid(fld, spec.LeaseDurationSeconds, "must be greater than 0")) } if spec.LeaseTransitions != nil && *spec.LeaseTransitions < 0 { fld := fldPath.Child("leaseTransitions") allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater than or equal to 0")) } return allErrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 03 17:25:43 UTC 2022 - 2K bytes - Viewed (0) -
staging/src/k8s.io/api/coordination/v1/types.go
// +optional RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,4,opt,name=renewTime"` // leaseTransitions is the number of transitions of a lease between // holders. // +optional LeaseTransitions *int32 `json:"leaseTransitions,omitempty" protobuf:"varint,5,opt,name=leaseTransitions"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.19
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 3K bytes - Viewed (0) -
pkg/apis/coordination/validation/validation_test.go
} } func TestValidateLeaseSpec(t *testing.T) { holder := "holder" leaseDuration := int32(0) leaseTransitions := int32(-1) spec := &coordination.LeaseSpec{ HolderIdentity: &holder, LeaseDurationSeconds: &leaseDuration, LeaseTransitions: &leaseTransitions, } errs := ValidateLeaseSpec(spec, field.NewPath("foo")) if len(errs) != 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 02 02:22:52 UTC 2018 - 2.9K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go
leaseTransitions := int32(ler.LeaderTransitions) return coordinationv1.LeaseSpec{ HolderIdentity: &ler.HolderIdentity, LeaseDurationSeconds: &leaseDurationSeconds, AcquireTime: &metav1.MicroTime{Time: ler.AcquireTime.Time}, RenewTime: &metav1.MicroTime{Time: ler.RenewTime.Time}, LeaseTransitions: &leaseTransitions, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jun 04 16:02:26 UTC 2022 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/coordination/v1beta1/leasespec.go
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"` AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"` RenewTime *v1.MicroTime `json:"renewTime,omitempty"` LeaseTransitions *int32 `json:"leaseTransitions,omitempty"` } // LeaseSpecApplyConfiguration constructs an declarative configuration of the LeaseSpec type for use with // apply. func LeaseSpec() *LeaseSpecApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/coordination/v1/leasespec.go
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"` AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"` RenewTime *v1.MicroTime `json:"renewTime,omitempty"` LeaseTransitions *int32 `json:"leaseTransitions,omitempty"` } // LeaseSpecApplyConfiguration constructs an declarative configuration of the LeaseSpec type for use with // apply. func LeaseSpec() *LeaseSpecApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/api/coordination/v1beta1/types.go
// +optional RenewTime *metav1.MicroTime `json:"renewTime,omitempty" protobuf:"bytes,4,opt,name=renewTime"` // leaseTransitions is the number of transitions of a lease between // holders. // +optional LeaseTransitions *int32 `json:"leaseTransitions,omitempty" protobuf:"varint,5,opt,name=leaseTransitions"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:prerelease-lifecycle-gen:introduced=1.12
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 16 16:45:58 UTC 2022 - 3.2K bytes - Viewed (0) -
staging/src/k8s.io/api/coordination/v1/generated.proto
// updated the lease. // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; // leaseTransitions is the number of transitions of a lease between // holders. // +optional optional int32 leaseTransitions = 5;
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/api/coordination/v1beta1/types_swagger_doc_generated.go
"acquireTime": "acquireTime is a time when the current lease was acquired.", "renewTime": "renewTime is a time when the current holder of a lease has last updated the lease.", "leaseTransitions": "leaseTransitions is the number of transitions of a lease between holders.", } func (LeaseSpec) SwaggerDoc() map[string]string { return map_LeaseSpec }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 22 00:51:25 UTC 2023 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/coordination.k8s.io.v1.Lease.yaml
resourceVersion: resourceVersionValue selfLink: selfLinkValue uid: uidValue spec: acquireTime: "2003-01-01T01:01:01.000003Z" holderIdentity: holderIdentityValue leaseDurationSeconds: 2 leaseTransitions: 5
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 1K bytes - Viewed (0)