- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 263 for Lease (0.58 sec)
-
staging/src/k8s.io/api/testdata/v1.29.0/coordination.k8s.io.v1beta1.Lease.pb
SataQiu <******@****.***> 1702613527 +0800
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 453 bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/coordination.k8s.io.v1.Lease.pb
SataQiu <******@****.***> 1713430345 +0800
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 448 bytes - Viewed (0) -
pkg/controlplane/controller/apiserverleasegc/gc_controller.go
} } } } func isLeaseExpired(lease *v1.Lease) bool { currentTime := time.Now() // Leases created by the apiserver lease controller should have non-nil renew time // and lease duration set. Leases without these fields set are invalid and should // be GC'ed. return lease.Spec.RenewTime == nil || lease.Spec.LeaseDurationSeconds == nil ||
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 25 03:27:44 UTC 2021 - 4.6K bytes - Viewed (0) -
pkg/controlplane/controller/apiserverleasegc/gc_controller_test.go
func Test_Controller(t *testing.T) { fakeClock := testingclock.NewFakeClock(time.Now()) tests := []struct { name string lease *coordinationv1.Lease expectDeleted bool }{ { name: "lease not expired", lease: &coordinationv1.Lease{ ObjectMeta: metav1.ObjectMeta{ Name: "kube-apiserver-12345", Namespace: metav1.NamespaceSystem, Labels: map[string]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 13 20:37:22 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/apis/coordination/validation/validation.go
) // ValidateLease validates a Lease. func ValidateLease(lease *coordination.Lease) field.ErrorList { allErrs := validation.ValidateObjectMeta(&lease.ObjectMeta, true, validation.NameIsDNSSubdomain, field.NewPath("metadata")) allErrs = append(allErrs, ValidateLeaseSpec(&lease.Spec, field.NewPath("spec"))...) return allErrs } // ValidateLeaseUpdate validates an update of Lease object.
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/generated.proto
option go_package = "k8s.io/api/coordination/v1"; // Lease defines a lease concept. message Lease { // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; // spec contains the specification of the Lease.
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/v1/types.go
// +k8s:prerelease-lifecycle-gen:introduced=1.14 // Lease defines a lease concept. type Lease struct { metav1.TypeMeta `json:",inline"` // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec contains the specification of the Lease.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 17:42:49 UTC 2024 - 3K bytes - Viewed (0) -
pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go
return err } // Update will update an existing Lease spec. func (ll *LeaseLock) Update(ctx context.Context, ler LeaderElectionRecord) error { if ll.lease == nil { return errors.New("lease not initialized, call get or create first") } ll.lease.Spec = LeaderElectionRecordToLeaseSpec(&ler) lease, err := ll.Client.Leases(ll.LeaseMeta.Namespace).Update(ctx, ll.lease, metav1.UpdateOptions{}) if err != nil { return err }
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/apiserver/pkg/storage/etcd3/lease_manager.go
} } // leaseManager is used to manage leases requested from etcd. If a new write // needs a lease that has similar expiration time to the previous one, the old // lease will be reused to reduce the overhead of etcd, since lease operations // are expensive. In the implementation, we only store one previous lease, // since all the events have the same ttl. type leaseManager struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 15 13:53:06 UTC 2021 - 4.8K bytes - Viewed (0) -
pkg/registry/coordination/lease/strategy.go
func (leaseStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { } // Validate validates a new Lease. func (leaseStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { lease := obj.(*coordination.Lease) return validation.ValidateLease(lease) } // WarningsOnCreate returns warnings for the creation of the given object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 18 14:42:36 UTC 2021 - 2.8K bytes - Viewed (0)