k3s/pkg/kubelet
Kubernetes Submit Queue ae6b329368 Merge pull request #51644 from sjenning/init-container-status-fix
Automatic merge from submit-queue (batch tested with PRs 51239, 51644, 52076)

do not update init containers status if terminated

fixes #29972 #41580

This fixes an issue where, if a completed init container is removed while the pod or subsequent init containers are still running, the status for that init container will be reset to `Waiting` with `PodInitializing`.  

This can manifest in a number of ways.

If the init container is removed why the main pod containers are running, the status will be reset with no functional problem but the status will be reported incorrectly in `kubectl get pod` for example

If the init container is removed why a subsequent init container is running, the init container will be **re-executed** leading to all manner of badness.

@derekwaynecarr @bparees
2017-09-07 14:31:23 -07:00
..
apis Implement StatsProvider using CRI stats 2017-09-06 09:11:56 -07:00
cadvisor Fix cross-build 2017-09-07 09:53:52 -04:00
certificate Merge pull request #50303 from zouyee/newb 2017-08-18 02:46:09 -07:00
client
cm Merge pull request #51928 from mindprince/pr-45724-fix-build 2017-09-05 19:44:54 -07:00
config Remove deprecated init-container in annotations 2017-08-25 13:39:29 +08:00
configmap
container Implement mount propagation in kubelet 2017-09-01 21:36:33 +02:00
custommetrics
deviceplugin Extends device_plugin_handler to checkpoint device to container allocation information. 2017-09-05 09:52:14 -07:00
dockershim update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
envvars
events Implement necessary API changes 2017-09-04 09:02:34 +02:00
eviction Merge pull request #50938 from cblecker/threshold-crossbuild 2017-09-02 22:52:11 -07:00
gpu
images update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
kubeletconfig Merge pull request #51474 from verult/ProberTest 2017-09-03 11:10:05 -07:00
kuberuntime Merge pull request #50350 from dashpole/eviction_container_deletion 2017-09-05 17:30:03 -07:00
leaky
lifecycle Admit NoNewPrivs for remote and rkt runtimes 2017-08-29 08:48:30 +08:00
metrics Expose PVC metrics via kubelet prometheus 2017-09-01 12:50:17 -04:00
network cni: print better error when a CNI .configlist is put into a .config 2017-08-17 11:01:05 -05:00
pleg
pod Change StatsProvider interface to provide container stats from either cadvisor or CRI and implement this interface using cadvisor 2017-08-25 13:11:26 -07:00
preemption Replace hard-code "cpu" and "memory" to consts 2017-08-16 16:37:50 +08:00
prober
qos
remote Merge pull request #50176 from Random-Liu/set-exec-timeout 2017-08-17 18:12:22 -07:00
rkt wait for container cleanup before deletion 2017-09-04 17:38:09 -07:00
rktshim
secret
server Merge pull request #51553 from wongma7/pvc-prometheus 2017-09-02 21:22:43 -07:00
stats Implement StatsProvider using CRI stats 2017-09-06 09:11:56 -07:00
status Remove deprecated init-container in annotations 2017-08-25 13:39:29 +08:00
sysctl
types Typed static/mirror pod UID translation 2017-08-14 14:51:26 +02:00
util Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
volumemanager Merge pull request #49849 from dixudx/stable_sort_volumesInUse 2017-08-26 18:09:27 -07:00
BUILD Merge pull request #49202 from cbonte/node-addresses 2017-09-06 20:01:00 -07:00
OWNERS
active_deadline.go
active_deadline_test.go
doc.go
kubelet.go Merge pull request #51645 from jingxu97/Aug/nameserver 2017-09-05 17:30:09 -07:00
kubelet_getters.go Change StatsProvider interface to provide container stats from either cadvisor or CRI and implement this interface using cadvisor 2017-08-25 13:11:26 -07:00
kubelet_getters_test.go
kubelet_network.go Use constants instead of magic string for runtime names 2017-08-26 22:44:27 +08:00
kubelet_network_test.go
kubelet_node_status.go Merge pull request #49202 from cbonte/node-addresses 2017-09-06 20:01:00 -07:00
kubelet_node_status_test.go Fix setNodeAddress when a node IP and a cloud provider are set 2017-08-29 17:09:25 +02:00
kubelet_pods.go Merge pull request #51644 from sjenning/init-container-status-fix 2017-09-07 14:31:23 -07:00
kubelet_pods_test.go Implement mount propagation in kubelet 2017-09-01 21:36:33 +02:00
kubelet_pods_windows_test.go
kubelet_resources.go
kubelet_resources_test.go
kubelet_test.go Share /var/lib/kubernetes on startup 2017-08-30 16:45:04 +02:00
kubelet_volumes.go Revert "Remove deprecated and experimental fields from KubeletConfiguration" 2017-09-02 16:30:56 +02:00
kubelet_volumes_test.go
networks.go
networks_test.go
oom_watcher.go
oom_watcher_test.go
pod_container_deletor.go
pod_container_deletor_test.go
pod_workers.go
pod_workers_test.go
reason_cache.go
reason_cache_test.go
runonce.go
runonce_test.go Share /var/lib/kubernetes on startup 2017-08-30 16:45:04 +02:00
runtime.go
util.go
volume_host.go Adding dynamic Flexvolume plugin discovery capability, using filesystem watch. 2017-08-25 11:42:32 -07:00