kubernetes/pkg/kubelet/kuberuntime
Rodrigo Campos e6c67c32e1 Fix kubelet log message when starting a container
This code can be called not only when a container is dead and restarted,
but when is started for the first time too. For example, any pod with
initContainer and containers will exhibit this behaviour. The reason is
that in that case, the "if createPodSandbox" path will return the
initContainers only and on the next call to this function this code is
executed to start the containers for the fist time.

In that case, it is wrong to log that the container is dead and will be
restarted, as it was never started. In fact, the restart count will not
be increased.

This commit just changes this to say that the container is not in the
desired state and should be started. In the end, the kubelet is a state
machine and that is all we really care about.

No tests are added, as the behaviour was correct and tests don't check
logs messages.

Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
2020-08-04 14:58:27 -03: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 Make toKubeContainerImageSpec deterministic 2020-07-31 14:41:11 -04: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 Add seccomp enforcement and validation based on new GA fields 2020-07-06 09:13:25 +01:00
helpers_unsupported.go Adding Windows CPU limit tests 2020-02-24 19:46:39 +00:00
helpers.go Add seccomp enforcement and validation based on new GA fields 2020-07-06 09:13:25 +01: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 fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00
kuberuntime_manager.go Fix kubelet log message when starting a container 2020-08-04 14:58:27 -03:00
kuberuntime_sandbox_test.go Add seccomp least privilege for kuberuntime 2020-07-08 22:03:29 +01:00
kuberuntime_sandbox.go Add seccomp least privilege for kuberuntime 2020-07-08 22:03:29 +01: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 Add seccomp enforcement and validation based on new GA fields 2020-07-06 09:13:25 +01:00