INNER CODE UNIT · Go

mainContainerExited

secureCodeBox/secureCodeBox · lurker/main.go:185

func mainContainerExited(container string, containerStatuses []corev1.ContainerStatus) bool {
	for _, status := range containerStatuses {
		if status.Name == container && status.State.Terminated != nil {
			log.Printf("Main Container exited. Lurker will end as well.")
			return true
		}
	}
	return false
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…