Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for gracePeriod (0.41 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    					},
    					GracePeriod: gracePeriod,
    					MinReclaim: &evictionapi.ThresholdValue{
    						Quantity: quantityMustParse("2Gi"),
    					},
    				},
    				{
    					Signal:   evictionapi.SignalNodeFsAvailable,
    					Operator: evictionapi.OpLessThan,
    					Value: evictionapi.ThresholdValue{
    						Quantity: quantityMustParse("200Mi"),
    					},
    					GracePeriod: gracePeriod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  2. security/pkg/credentialfetcher/plugin/gce.go

    	// When fails to get expiration time from token, always refresh the token.
    	if err != nil || exp.IsZero() {
    		return true
    	}
    	rotate := now.After(exp.Add(-gracePeriod))
    	gcecredLog.Debugf("credential expiration: %s, grace period: %s, should rotate: %t",
    		exp.String(), gracePeriod.String(), rotate)
    	return rotate
    }
    
    // GetPlatformCredential fetches the GCE VM identity jwt token from its metadata server,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/go/script_test.go

    	}
    
    	StartProxy()
    
    	var (
    		ctx         = context.Background()
    		gracePeriod = 100 * time.Millisecond
    	)
    	if deadline, ok := t.Deadline(); ok {
    		timeout := time.Until(deadline)
    
    		// If time allows, increase the termination grace period to 5% of the
    		// remaining time.
    		if gp := timeout / 20; gp > gracePeriod {
    			gracePeriod = gp
    		}
    
    		// When we run commands that execute subprocesses, we want to reserve two
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container.go

    			"containerName", containerName, "containerID", containerID.String(), "gracePeriod", gracePeriod)
    	}
    
    	// Run the pre-stop lifecycle hooks if applicable and if there is enough time to run it
    	if containerSpec.Lifecycle != nil && containerSpec.Lifecycle.PreStop != nil && gracePeriod > 0 {
    		gracePeriod = gracePeriod - m.executePreStopHook(ctx, pod, containerID, containerSpec, gracePeriod)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  5. security/pkg/nodeagent/cache/secretcache_test.go

    		expire      time.Time
    		gracePeriod float64
    		expected    time.Duration
    	}{
    		{
    			name:        "already expired",
    			created:     now.Add(-time.Second * 2),
    			expire:      now.Add(-time.Second),
    			gracePeriod: 0.5,
    			expected:    0,
    		},
    		{
    			name:        "grace period .50",
    			created:     now,
    			expire:      now.Add(time.Hour),
    			gracePeriod: 0.5,
    			expected:    time.Minute * 30,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. pkg/kubelet/pod_workers_test.go

    				func() {
    					lock.Lock()
    					defer lock.Unlock()
    					processed[pod.UID] = append(processed[pod.UID], syncPodRecord{
    						name:        pod.Name,
    						updateType:  kubetypes.SyncPodKill,
    						gracePeriod: gracePeriod,
    					})
    				}()
    				return nil
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    	}()
    
    	createTestResources(ctx, t, dynamicClient)
    
    	// after creating resources, delete one to make sure deletions can be observed
    	toDelete := "shirt1"
    	var gracePeriod int64 = 0
    	err := clients["v1"].Delete(ctx, toDelete, metav1.DeleteOptions{GracePeriodSeconds: &gracePeriod})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// after creating resources, update the color of one CR to longer appear in a field selected watch.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go

    			}
    
    			type PodKillInfo struct {
    				Name        string
    				GracePeriod int64
    			}
    
    			podKillChan := make(chan PodKillInfo, 1)
    			killPodsFunc := func(pod *v1.Pod, evict bool, gracePeriodOverride *int64, fn func(podStatus *v1.PodStatus)) error {
    				var gracePeriod int64
    				if gracePeriodOverride != nil {
    					gracePeriod = *gracePeriodOverride
    				}
    				fn(&pod.Status)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    		})
    	}
    }
    
    func testLifeCycleHook(t *testing.T, testPod *v1.Pod, testContainer *v1.Container) {
    
    	// Setup
    	fakeRuntime, _, m, _ := createTestRuntimeManager()
    
    	gracePeriod := int64(30)
    	cID := kubecontainer.ContainerID{
    		Type: "docker",
    		ID:   "foo",
    	}
    
    	cmdPostStart := &v1.Lifecycle{
    		PostStart: &v1.LifecycleHandler{
    			Exec: &v1.ExecAction{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/strategy_test.go

    			if out.GracePeriodSeconds == nil {
    				t.Errorf("out grace period was nil but supposed to be %v", tc.gracePeriod)
    			}
    			if *(out.GracePeriodSeconds) != tc.gracePeriod {
    				t.Errorf("out grace period was %v but was expected to be %v", *out, tc.gracePeriod)
    			}
    		})
    	}
    }
    
    type mockPodGetter struct {
    	pod *api.Pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top