Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for podFunc (0.12 sec)

  1. pkg/volume/csi/csi_test.go

    	tests := []struct {
    		name                 string
    		specName             string
    		driver               string
    		volName              string
    		specFunc             func(specName, driver, volName string) *volume.Spec
    		podFunc              func() *api.Pod
    		isInline             bool
    		findPluginShouldFail bool
    		driverSpec           *storage.CSIDriverSpec
    		watchTimeout         time.Duration
    	}{
    		{
    			name:     "PersistentVolume",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/mock_threshold_notifier_test.go

    func (m *MockManager) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	m.ctrl.T.Helper()
    	m.ctrl.Call(m, "Start", diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval)
    }
    
    // Start indicates an expected call of Start.
    func (mr *MockManagerMockRecorder) Start(diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval any) *gomock.Call {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/eviction_manager.go

    func (m *managerImpl) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	thresholdHandler := func(message string) {
    		klog.InfoS(message)
    		m.synchronize(diskInfoProvider, podFunc)
    	}
    	if m.config.KernelMemcgNotification {
    		for _, threshold := range m.config.Thresholds {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/types.go

    type Manager interface {
    	// Start starts the control loop to monitor eviction thresholds at specified interval.
    	Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration)
    
    	// IsUnderMemoryPressure returns true if the node is under memory pressure.
    	IsUnderMemoryPressure() bool
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. pkg/kubelet/pleg/pleg.go

    	// ContainerRemoved - event type when the old state of container is exited.
    	ContainerRemoved PodLifeCycleEventType = "ContainerRemoved"
    	// PodSync is used to trigger syncing of a pod when the observed change of
    	// the state of the pod cannot be captured by any single event above.
    	PodSync PodLifeCycleEventType = "PodSync"
    	// ContainerChanged - event type when the new state of container is unknown.
    	ContainerChanged PodLifeCycleEventType = "ContainerChanged"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 16:14:26 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. pkg/kubelet/pleg/generic_test.go

    	}
    }
    
    func TestRelisting(t *testing.T) {
    	testPleg := newTestGenericPLEG()
    	pleg, runtime := testPleg.pleg, testPleg.runtime
    	ch := pleg.Watch()
    	// The first relist should send a PodSync event to each pod.
    	runtime.AllPodList = []*containertest.FakePod{
    		{Pod: &kubecontainer.Pod{
    			ID: "1234",
    			Containers: []*kubecontainer.Container{
    				createTestContainer("c1", kubecontainer.ContainerStateExited),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. pkg/kubelet/status/status_manager.go

    // attempted for testing.
    func (m *manager) syncBatch(all bool) int {
    	type podSync struct {
    		podUID    types.UID
    		statusUID kubetypes.MirrorPodUID
    		status    versionedPodStatus
    	}
    
    	var updatedStatuses []podSync
    	podToMirror, mirrorToPod := m.podManager.GetUIDTranslations()
    	func() { // Critical section
    		m.podStatusesLock.RLock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server_test.go

    	testPodSandboxID = "pod0987"
    )
    
    type fakeKubelet struct {
    	podByNameFunc       func(namespace, name string) (*v1.Pod, bool)
    	machineInfoFunc     func() (*cadvisorapi.MachineInfo, error)
    	podsFunc            func() []*v1.Pod
    	runningPodsFunc     func(ctx context.Context) ([]*v1.Pod, error)
    	logFunc             func(w http.ResponseWriter, req *http.Request)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top