kubernetes/pkg/kubelet
Clayton Coleman 69a3820214
kubelet: Delay writing a terminal phase until the pod is terminated
Other components must know when the Kubelet has released critical
resources for terminal pods. Do not set the phase in the apiserver
to terminal until all containers are stopped and cannot restart.

As a consequence of this change, the Kubelet must explicitly transition
a terminal pod to the terminating state in the pod worker which is
handled by returning a new isTerminal boolean from syncPod.

Finally, if a pod with init containers hasn't been initialized yet,
don't default container statuses or not yet attempted init containers
to the unknown failure state.
2022-03-16 13:15:00 -04:00
..
apis Merge pull request #96004 from serathius/datapolicy-kubelet-pkg 2022-03-04 15:34:51 -08:00
cadvisor Merge pull request #108004 from equinix-ms/kubelet-include-oommetrics 2022-03-14 23:14:13 -07:00
certificate Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
checkpointmanager remove fakefs to drop spf13/afero dependency 2021-06-24 09:51:34 -04:00
client Merge pull request #96004 from serathius/datapolicy-kubelet-pkg 2022-03-04 15:34:51 -08:00
cloudresource Apply suggestions from code review 2021-03-05 23:59:23 +05:30
cm Fix comment typo 2022-03-14 16:53:29 +08:00
config Mark pod-infra-container-image flag as deprecated 2022-02-14 09:11:51 +02:00
configmap Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
container Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
cri Merge pull request #96004 from serathius/datapolicy-kubelet-pkg 2022-03-04 15:34:51 -08:00
custommetrics hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
envvars hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
events kubelet: add shutdown events 2021-06-23 16:44:19 -05:00
eviction Merge pull request #96828 from panjf2000/opt-epoll-eventfd 2022-03-01 13:59:54 -08:00
images Remove no-longer used selflink code from kubelet 2022-01-14 10:38:23 +01:00
kubeletconfig remove DynamicKubeletConfig logic from kubelet 2022-01-19 22:38:04 +00:00
kuberuntime Pass instrumented runtime service to containergc 2022-03-08 14:33:37 +00:00
leaky hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
lifecycle Merge pull request #103934 from boenn/tainttoleration 2022-02-09 16:53:46 -08:00
logs Add support for CRI verbose fields 2022-02-10 17:12:26 +01:00
metrics Revert "add volume kubelet_volume_stats_health_abnormal to kubelet" 2022-03-16 13:44:09 +01:00
network Change the name of the constant 2021-12-14 22:42:57 +09:00
nodeshutdown fix: data race when hijack klog 2022-01-24 15:01:49 +08:00
nodestatus parse ipv6 address before comparison (#107736) 2022-01-26 18:38:49 -08:00
oom generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
pleg avoid klog Info calls without verbosity 2022-01-12 07:48:36 +01:00
pluginmanager Fix typo in pkg/kubelet/pluginmanager/cache/actual_state_of_world 2022-02-24 16:20:24 -05:00
pod Move kubelet secret and configmap manager calls to sync_Pod functions 2022-01-27 10:09:13 -05:00
preemption migrated preemption.go, stateful.go, resource_allocation.go to structured logging 2021-11-08 22:52:47 +05:30
prober Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
qos Only system-node-critical pods should be OOM Killed last 2021-03-03 16:34:27 -05:00
runtimeclass hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
secret Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
server Revert "add volume kubelet_volume_stats_health_abnormal to kubelet" 2022-03-16 13:44:09 +01:00
stats Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
status kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
sysctl Upgrade preparation to verify sysctl values containing forward slashes by regex 2021-11-04 11:49:56 +08:00
token Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
types Clean up dockershim flags in the kubelet 2022-01-14 16:02:50 +02:00
util Fix typo in watch_based_manager_test 2022-03-01 10:21:17 +08:00
volumemanager Update sig-storage owners file 2022-03-14 18:57:52 +00:00
winstats add more info when failing to call PdhAddEnglishCounter 2021-11-24 13:49:34 +08:00
active_deadline_test.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
active_deadline.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
doc.go
errors.go
kubelet_getters_test.go
kubelet_getters.go pkg/kubelet: improve the node informer sync check 2021-04-21 22:46:27 +03:00
kubelet_network_linux.go move IPv6DualStack feature to stable. (#104691) 2021-09-24 16:30:22 -07:00
kubelet_network_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_network.go Make CRI v1 the default and allow a fallback to v1alpha2 2021-11-17 11:05:05 -08:00
kubelet_node_status_others.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status_test.go [kubelet]: Sync label periodically 2021-11-05 18:47:43 -04:00
kubelet_node_status_windows.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_node_status.go migrate --register-with-taints to KubeletConfiguration 2021-11-16 19:10:36 +08:00
kubelet_pods_linux_test.go Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
kubelet_pods_test.go ignore CRI PodSandboxNetworkStatus for host network pods 2022-02-04 18:41:57 +01:00
kubelet_pods_windows_test.go Clean up logic for deprecated flag --container-runtime in kubelet 2022-02-10 13:26:59 +02:00
kubelet_pods.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
kubelet_resources_test.go
kubelet_resources.go Migrate pkg/kubelet/kubeletconfig to Structured Logging 2021-03-15 15:42:34 -07:00
kubelet_test.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
kubelet_volumes_linux_test.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
kubelet_volumes_test.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
kubelet_volumes.go Keep pod worker running until pod is truly complete 2021-07-06 15:55:22 -04:00
kubelet.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
pod_container_deletor_test.go
pod_container_deletor.go Structured Logging migration: modify volume and container part logs of kubelet. 2021-03-17 08:59:03 +08:00
pod_workers_test.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
pod_workers.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
reason_cache_test.go
reason_cache.go
runonce_test.go kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
runonce.go kubelet: Delay writing a terminal phase until the pod is terminated 2022-03-16 13:15:00 -04:00
runtime.go
time_cache_test.go
time_cache.go
volume_host.go use node informer to check volumes attachment status before backoff 2021-12-20 11:57:05 -05:00