Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ContainerRemoved (0.24 sec)

  1. pkg/kubelet/pleg/pleg.go

    	// 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"
    	// 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.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 16:14:26 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. pkg/kubelet/pleg/generic_test.go

    	// Only report containers that transitioned to running or exited status.
    	expected = []*PodLifecycleEvent{
    		{ID: "1234", Type: ContainerRemoved, Data: "c1"},
    		{ID: "1234", Type: ContainerDied, Data: "c2"},
    		{ID: "1234", Type: ContainerStarted, Data: "c3"},
    		{ID: "4567", Type: ContainerRemoved, Data: "c1"},
    		{ID: "4567", Type: ContainerStarted, Data: "c4"},
    	}
    
    	actual = getEventsFromChannel(ch)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  3. pkg/kubelet/pleg/evented.go

    		klog.V(4).InfoS("Received Container Started Event", "event", event.String())
    	case runtimeapi.ContainerEventType_CONTAINER_DELETED_EVENT:
    		// 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
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/generic.go

    		case plegContainerExited:
    			// We already reported that the container died before.
    			return []*PodLifecycleEvent{{ID: podID, Type: ContainerRemoved, Data: cid}}
    		default:
    			return []*PodLifecycleEvent{{ID: podID, Type: ContainerDied, Data: cid}, {ID: podID, Type: ContainerRemoved, Data: cid}}
    		}
    	default:
    		panic(fmt.Sprintf("unrecognized container state: %v", newState))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet.go

    }
    
    // isSyncPodWorthy filters out events that are not worthy of pod syncing
    func isSyncPodWorthy(event *pleg.PodLifecycleEvent) bool {
    	// ContainerRemoved doesn't affect pod state
    	return event.Type != pleg.ContainerRemoved
    }
    
    // PrepareDynamicResources calls the container Manager PrepareDynamicResources API
    // This method implements the RuntimeHelper interface
    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