Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for gracePeriod (0.25 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	// Transforms data using one of them, and tries to untransform using the others.
    	// Repeats this for all possible combinations.
    	// Math for GracePeriod is explained at - https://github.com/kubernetes/kubernetes/blob/c9ed04762f94a319d7b1fb718dc345491a32bea6/staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go#L159-L163
    	expectedKMSCloseGracePeriod := 46 * time.Second
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation.go

    			}
    			allErrs = append(allErrs, validateLivenessProbe(ctr.LivenessProbe, gracePeriod, idxPath.Child("livenessProbe"))...)
    			allErrs = append(allErrs, validateReadinessProbe(ctr.ReadinessProbe, gracePeriod, idxPath.Child("readinessProbe"))...)
    			allErrs = append(allErrs, validateStartupProbe(ctr.StartupProbe, gracePeriod, idxPath.Child("startupProbe"))...)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_pods_test.go

    					{name: "pod1", updateType: kubetypes.SyncPodCreate},
    					{name: "pod1", updateType: kubetypes.SyncPodKill, gracePeriod: &two},
    					{name: "pod1", updateType: kubetypes.SyncPodKill, gracePeriod: &two},
    					// after the second attempt
    					{name: "pod1", updateType: kubetypes.SyncPodKill, gracePeriod: &two},
    					// from termination
    					{name: "pod1", terminated: true},
    				}; !reflect.DeepEqual(expected, actual) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  9. pkg/kubelet/eviction/eviction_manager_test.go

    				},
    			},
    			{
    				Signal:   evictionapi.SignalMemoryAvailable,
    				Operator: evictionapi.OpLessThan,
    				Value: evictionapi.ThresholdValue{
    					Quantity: quantityMustParse("2Gi"),
    				},
    				GracePeriod: time.Minute * 2,
    			},
    		},
    	}
    	summaryProvider := &fakeSummaryProvider{result: summaryStatsMaker("2Gi", podStats)}
    	manager := &managerImpl{
    		clock:                        fakeClock,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    	}
    	kl.statusManager.SetPodStatus(pod, apiPodStatus)
    
    	if gracePeriod != nil {
    		klog.V(4).InfoS("Pod terminating with grace period", "pod", klog.KObj(pod), "podUID", pod.UID, "gracePeriod", *gracePeriod)
    	} else {
    		klog.V(4).InfoS("Pod terminating with grace period", "pod", klog.KObj(pod), "podUID", pod.UID, "gracePeriod", nil)
    	}
    
    	kl.probeManager.StopLivenessAndStartup(pod)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top