kubernetes/pkg/kubelet
Kubernetes Submit Queue 1ce0148047
Merge pull request #61504 from Random-Liu/fix-pod-scheduled-bug
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix `PodScheduled` bug for static pod.

Fixes https://github.com/kubernetes/kubernetes/issues/60589.

This is an implementation of option 2 in https://github.com/kubernetes/kubernetes/issues/60589#issuecomment-375103979.
I've validated this in my own cluster, and there won't be continuously status update for static pod any more.

Signed-off-by: Lantao Liu <lantaol@google.com>



**What this PR does / why we need it**:

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
none
```
2018-03-24 12:34:28 -07:00
..
apis regenerated all files and remove all YEAR fields 2018-03-08 17:52:48 +08:00
cadvisor Merge pull request #59743 from feiskyer/stats 2018-02-23 20:09:32 -08:00
certificate Merge pull request #59316 from smarterclayton/terminate_early 2018-02-21 15:40:41 -08:00
checkpoint Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
client Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cm Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
config Merge pull request #58714 from dcbw/cni-plugin-dirs 2018-03-19 21:34:39 -07:00
configmap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
container Merge pull request #61373 from msau42/subpath-reconstruct 2018-03-22 06:20:28 -07:00
custommetrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
dockershim Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
envvars Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
events Improve messaging on resize 2018-01-29 15:07:51 -05:00
eviction refresh eviction interval periodically 2018-03-06 15:14:05 -08:00
gpu Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
images Promote LocalStorageCapacityIsolation feature to beta 2018-03-02 15:10:08 -08:00
kubeletconfig expunge the word 'manifest' from Kubelet's config API 2018-02-23 11:44:06 -08:00
kuberuntime Merge pull request #60851 from aveshagarwal/master-rhbz-1548987 2018-03-20 15:34:37 -07:00
leaky update BUILD files 2017-10-15 18:18:13 -07:00
lifecycle Support cluster-level extended resources in kubelet and kube-scheduler 2018-02-27 17:25:30 -08:00
logs Generated code 2018-02-23 01:42:35 +00:00
metrics Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
mountpod Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
network Merge pull request #60912 from m1093782566/refactor-hostport 2018-03-20 17:37:10 -07:00
pleg Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
pod Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
preemption Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
prober Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
qos Make a few code paths compile cleanly with 32-bit Go. 2018-02-27 13:53:32 -08:00
remote Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
rkt Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
secret Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
server regenerated all files and remove all YEAR fields 2018-03-08 17:52:48 +08:00
stats Add CPU/Memory pod stats for CRI stats. 2018-02-26 19:29:47 +00:00
status Fix PodScheduled bug for static pod. 2018-03-22 01:04:08 +00:00
sysctl clean up sysctl code 2018-02-23 16:41:53 +08:00
types Merge pull request #58835 from ravisantoshgudimetla/critical-pod-with-priority 2018-02-23 11:22:31 -08:00
util Detect backsteps correctly in base path detection 2018-03-13 02:23:06 -04:00
volumemanager Merge pull request #61373 from msau42/subpath-reconstruct 2018-03-22 06:20:28 -07:00
winstats fix "make test" 2018-02-24 17:39:21 +08:00
active_deadline_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
active_deadline.go run hack/update-all 2017-06-22 11:31:03 -07:00
BUILD kubelet: make --cni-bin-dir accept a comma-separated list of CNI plugin directories 2018-03-01 10:51:18 -06:00
doc.go
kubelet_getters_test.go kubelet: remove code for handling old pod/containers paths. 2017-07-20 13:10:15 +02:00
kubelet_getters.go Fix issue with race condition during pod deletion 2018-03-15 15:35:37 -07:00
kubelet_network_test.go Move DNS related kubelet codes into its own package 2017-11-15 10:56:44 -08:00
kubelet_network.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
kubelet_node_status_test.go Promote LocalStorageCapacityIsolation feature to beta 2018-03-02 15:10:08 -08:00
kubelet_node_status.go Promote LocalStorageCapacityIsolation feature to beta 2018-03-02 15:10:08 -08:00
kubelet_pods_test.go Add feature gate for subpath 2018-03-05 09:14:44 +01:00
kubelet_pods_windows_test.go Lock subPath volumes 2018-03-05 09:14:44 +01:00
kubelet_pods.go Merge pull request #61504 from Random-Liu/fix-pod-scheduled-bug 2018-03-24 12:34:28 -07:00
kubelet_resources_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
kubelet_resources.go apimachinery: remove Scheme.DeepCopy 2017-10-06 14:59:17 +02:00
kubelet_test.go Promote LocalStorageCapacityIsolation feature to beta 2018-03-02 15:10:08 -08:00
kubelet_volumes_test.go update import 2018-02-27 20:23:35 +08:00
kubelet_volumes.go Fix issue with race condition during pod deletion 2018-03-15 15:35:37 -07:00
kubelet.go Merge pull request #61078 from hzxuzhonghu/kubelet-clean 2018-03-21 14:15:13 -07:00
oom_watcher_test.go run root-rewrite-import-client-go-api-types 2017-06-22 11:30:59 -07:00
oom_watcher.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
OWNERS Name change: s/timstclair/tallclair/ 2017-07-10 14:05:46 -07:00
pod_container_deletor_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_container_deletor.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
pod_workers_test.go Correct TestUpdatePod comment 2017-10-20 09:41:18 +08:00
pod_workers.go fixes document grammar 2018-02-20 10:38:41 -05:00
reason_cache_test.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
reason_cache.go Added golint check for pkg/kubelet. 2017-07-19 11:33:06 +08:00
runonce_test.go Share /var/lib/kubernetes on startup 2017-08-30 16:45:04 +02:00
runonce.go fix todo:add function getFailContainer to report which containers failed the pod 2018-03-15 09:38:02 +08:00
runtime.go Remove setInitError. 2018-01-29 21:44:54 -08:00
util.go Fix comments and typo in the error message. 2017-07-14 19:17:12 +02:00
volume_host.go update import 2018-02-27 20:23:35 +08:00