Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ContainerDied (0.19 sec)

  1. pkg/kubelet/pleg/generic_test.go

    	// Report every running/exited container if we see them for the first time.
    	expected := []*PodLifecycleEvent{
    		{ID: "1234", Type: ContainerStarted, Data: "c2"},
    		{ID: "4567", Type: ContainerDied, Data: "c1"},
    		{ID: "1234", Type: ContainerDied, Data: "c1"},
    	}
    	actual := getEventsFromChannel(ch)
    	verifyEvents(t, expected, actual)
    
    	// The second relist should not send out any event because no container has
    	// changed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  2. pkg/kubelet/pleg/pleg.go

    }
    
    const (
    	// ContainerStarted - event type when the new state of container is running.
    	ContainerStarted PodLifeCycleEventType = "ContainerStarted"
    	// ContainerDied - event type when the new state of container is exited.
    	ContainerDied PodLifeCycleEventType = "ContainerDied"
    	// ContainerRemoved - event type when the old state of container is exited.
    	ContainerRemoved PodLifeCycleEventType = "ContainerRemoved"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 16:14:26 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/generic.go

    				klog.ErrorS(nil, "Event channel is full, discard this relist() cycle event")
    			}
    			// Log exit code of containers when they finished in a particular event
    			if events[i].Type == ContainerDied {
    				// Fill up containerExitCode map for ContainerDied event when first time appeared
    				if len(containerExitCode) == 0 && pod != nil && g.cache != nil {
    					// Get updated podStatus
    					status, err := g.cache.Get(pod.ID)
    					if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/evented.go

    		// In case the pod is deleted it is safe to generate both ContainerDied and ContainerRemoved events, just like in the case of
    		// Generic PLEG. https://github.com/kubernetes/kubernetes/blob/24753aa8a4df8d10bfd6330e0f29186000c018be/pkg/kubelet/pleg/generic.go#L169
    		e.sendPodLifecycleEvent(&PodLifecycleEvent{ID: types.UID(event.PodSandboxStatus.Metadata.Uid), Type: ContainerDied, Data: event.ContainerId})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    			} else {
    				// If the pod no longer exists, ignore the event.
    				klog.V(4).InfoS("SyncLoop (PLEG): pod does not exist, ignore irrelevant event", "event", e)
    			}
    		}
    
    		if e.Type == pleg.ContainerDied {
    			if containerID, ok := e.Data.(string); ok {
    				kl.cleanUpContainersInPod(e.ID, containerID)
    			}
    		}
    	case <-syncCh:
    		// Sync pods waiting for sync
    		podsToSync := kl.getPodsToSync()
    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