kubernetes/pkg/kubelet/kuberuntime
Quan Tian b2b082f54f Don't create a new sandbox for pod with RestartPolicyOnFailure if all containers succeeded
The kubelet would attempt to create a new sandbox for a pod whose
RestartPolicy is OnFailure even after all container succeeded. It caused
unnecessary CRI and CNI calls, confusing logs and conflicts between the
routine that creates the new sandbox and the routine that kills the Pod.

This patch checks the containers to start and stops creating sandbox if
no container is supposed to start.
2020-07-07 22:49:48 +08:00
..
logs Fix log timestamps to be displayed in fixed width 2020-05-19 13:07:56 +08:00
BUILD Adding Bazel deps 2020-06-15 08:58:02 -04:00
convert_test.go kubelet - adding pod annotations to various image calls to get runtime-handler info to CRI 2020-04-17 23:57:09 +00:00
convert.go kubelet - adding pod annotations to various image calls to get runtime-handler info to CRI 2020-04-17 23:57:09 +00:00
doc.go
fake_kuberuntime_manager.go Merge pull request #85225 from DataDog/eric.mountain/cleanup_refmanager_master 2020-05-28 16:37:15 -07:00
helpers_linux_test.go update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
helpers_linux.go fix #73264 cpuPeriod was not reset, but used as it is if alpha gate is disabled 2019-02-01 16:45:43 +01:00
helpers_test.go Remove checks for PodShareProcessNamespace feature gate 2019-10-31 17:15:23 +00:00
helpers_unsupported.go Adding Windows CPU limit tests 2020-02-24 19:46:39 +00:00
helpers.go fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00
instrumented_services_test.go migrate kubelet's metrics/probes & metrics endpoint to metrics stability framework 2019-08-28 11:16:38 -07:00
instrumented_services.go remove deprecated metrics of kubelet 2020-01-10 16:46:52 +08:00
kuberuntime_container_linux_test.go Add namespace targeting to the kubelet 2020-01-30 15:31:43 +01:00
kuberuntime_container_linux.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
kuberuntime_container_test.go fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00
kuberuntime_container_unsupported.go Add namespace targeting to the kubelet 2020-01-30 15:31:43 +01:00
kuberuntime_container_windows.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
kuberuntime_container.go Merge pull request #91956 from kinvolk/rata/fix-kubelet-log-on-kill 2020-06-24 13:30:38 -07:00
kuberuntime_gc_test.go fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00
kuberuntime_gc.go fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00
kuberuntime_image_test.go Merge pull request #90061 from marosset/runtimehandler-image-spec-annotations 2020-05-18 16:29:36 -07:00
kuberuntime_image.go Merge pull request #90061 from marosset/runtimehandler-image-spec-annotations 2020-05-18 16:29:36 -07:00
kuberuntime_logs.go kubelet: plumb context for log requests 2018-08-10 17:35:46 -07:00
kuberuntime_manager_test.go Don't create a new sandbox for pod with RestartPolicyOnFailure if all containers succeeded 2020-07-07 22:49:48 +08:00
kuberuntime_manager.go Don't create a new sandbox for pod with RestartPolicyOnFailure if all containers succeeded 2020-07-07 22:49:48 +08:00
kuberuntime_sandbox_test.go update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-05-08 10:01:50 -04:00
kuberuntime_sandbox.go Adding Kubelet changes to enable SetHostnameAsFQDN feature 2020-06-14 21:26:27 -04:00
labels_test.go Remove container type from kubelet runtime labels 2018-12-21 15:47:47 +01:00
labels.go switch over k/k to use klog v2 2020-05-16 07:54:27 -04:00
legacy_test.go fix golint failures - /pkg/kubelet/images 2018-09-17 10:52:25 +08:00
legacy.go Remove unhealthy symlink only for dead containers 2020-04-21 12:30:51 -07:00
security_context_test.go
security_context.go New staging repository for cri-api 2019-03-26 18:21:04 -04:00