func IsPauseContainer(labels map[string]string) bool {
	ctr, ctrFound := labels[containerNameLabel]
	if ctr == pauseContainerNameValue {
		return true
	}

	// Pause containers don't have a "io.kubernetes.container.name" label in containerd
	// they only have io.kubernetes.pod.name
	// See https://github.com/containerd/cri/issues/922
	_, podFound := labels[podNameLabel]
	return !ctrFound && podFound
}
// IsPauseContainer returns whether a container is a pause container based on the container labels
// This util can be used to exclude pause container in best-effort
// Note: Pause containers can still be excluded based on the image name via the container filtering module
IsPauseContainer returns whether a container is a pause container based on the container labels
This util can be used to exclude pause container in best-effort
Note: Pause containers can still be excluded based on the image name via the container filtering module
// IsPauseContainer returns whether a container is a pause container based on the container labels // This util can be used to exclude pause container in best - effort // Note : Pause containers can still be excluded based on the image name via the container filtering module
func IsPauseContainer(labels map[string]string) bool {
	ctr, ctrFound := labels[containerNameLabel]
	if ctr == pauseContainerNameValue {
		return true
	}
	_, podFound := labels[podNameLabel]
	return !ctrFound && podFound
}
func IsPauseContainer ( labels map [ string ] string ) bool { ctr , ctrFound := labels [ containerNameLabel ] if ctr == pauseContainerNameValue { return true } _ , podFound := labels [ podNameLabel ] return ! ctrFound && podFound }
IsPauseContainer returns whether a container is a pause container based on the container labels
This util can be used to exclude pause container in best-effort
Note: Pause containers can still be excluded based on the image name via the container filtering module
IsPauseContainer returns whether a container is a pause container based on the container labels This util can be used to exclude pause container in best - effort Note : Pause containers can still be excluded based on the image name via the container filtering module
// Pause containers don't have a "io.kubernetes.container.name" label in containerd // they only have io.kubernetes.pod.name // See https://github.com/containerd/cri/issues/922