Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for renewTime (0.1 sec)

  1. plugin/pkg/admission/noderestriction/admission_test.go

    				LeaseDurationSeconds: pointer.Int32(40),
    				RenewTime:            &metav1.MicroTime{Time: time.Now()},
    			},
    		}
    		leaseWrongNS = &coordination.Lease{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "mynode",
    				Namespace: "foo",
    			},
    			Spec: coordination.LeaseSpec{
    				HolderIdentity:       pointer.String("mynode"),
    				LeaseDurationSeconds: pointer.Int32(40),
    				RenewTime:            &metav1.MicroTime{Time: time.Now()},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 73.2K bytes
    - Viewed (0)
  2. pkg/controller/nodelifecycle/node_lifecycle_controller.go

    	// take no action.
    	observedLease, _ := nc.leaseLister.Leases(v1.NamespaceNodeLease).Get(node.Name)
    	if observedLease != nil && (savedLease == nil || savedLease.Spec.RenewTime.Before(observedLease.Spec.RenewTime)) {
    		nodeHealth.lease = observedLease
    		nodeHealth.probeTimestamp = nc.now()
    	}
    
    	if nc.now().After(nodeHealth.probeTimestamp.Add(gracePeriod)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top