k3s/pkg
Kubernetes Submit Queue a57967f47b Merge pull request #41436 from dashpole/status_bug
Automatic merge from submit-queue

Fix bug in status manager TerminatePod

In TerminatePod, we previously pass pod.Status to updateStatusInternal.  This is a bug, since it is the original status that we are given.  Not only does it skip updates made to container statuses, but in some cases it reverted the pod's status to an earlier version, since it was being passed a stale status initially.

This was the case in #40239 and #41095.  As shown in #40239, the pod's status is set to running after it is set to failed, occasionally causing very long delays in pod deletion since we have to wait for this to be corrected.

This PR fixes the bug, adds some helpful debugging statements, and adds a unit test for TerminatePod (which for some reason didnt exist before?).

@kubernetes/sig-node-bugs @vish @Random-Liu
2017-02-14 21:03:31 -08:00
..
api move metav1 conversions to metav1 2017-02-14 11:47:23 -05:00
apimachinery/tests Update generated files 2017-01-29 21:41:45 +01:00
apis Merge pull request #41155 from liggitt/reconcile 2017-02-14 19:54:14 -08:00
auth Update authn/authz owners and reviewers 2017-01-27 08:55:44 -05:00
bootstrap/api Expose the constants in pkg/controller/bootstrap and add a validate token method 2017-02-14 20:29:23 +02:00
capabilities Fix comment for method SetForTests 2017-02-14 17:16:49 +08:00
client Update to use proxy subresource consistently 2017-02-13 22:05:00 -05:00
cloudprovider Merge pull request #41034 from rootfs/gce-instance 2017-02-14 09:11:25 -08:00
controller Expose the constants in pkg/controller/bootstrap and add a validate token method 2017-02-14 20:29:23 +02:00
conversion Revert "Remove conversion package" 2017-01-22 15:41:06 -08:00
credentialprovider Merge pull request #40142 from colemickens/colemickens-acr-login-server 2017-01-25 00:40:02 -08:00
features update critical pod annotation flag gate to mention that BestEffort pods are not supported 2017-02-02 11:32:23 -08:00
fieldpath Merge pull request #34533 from yuexiao-wang/fix-commends 2017-01-30 09:05:22 -08:00
fields move pkg/fields to apimachinery 2017-01-19 09:50:16 -05:00
generated Merge pull request #41184 from liggitt/subject-apigroup 2017-02-13 21:07:10 -08:00
hyperkube Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
kubeapiserver remove duplication of RESTOptionsGetter for kube 2017-02-08 09:08:58 -05:00
kubectl Merge pull request #41304 from liggitt/edit-refactor 2017-02-14 18:34:30 -08:00
kubelet Merge pull request #41436 from dashpole/status_bug 2017-02-14 21:03:31 -08:00
kubemark Updated NodeRef to clientv1.ObjectReference. 2017-02-07 06:27:06 +08:00
labels add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
master Merge pull request #41115 from rajatchopra/kube_service_fix 2017-02-13 17:03:22 -08:00
metrics Update to use proxy subresource consistently 2017-02-13 22:05:00 -05:00
probe start the apimachinery repo 2017-01-11 09:09:48 -05:00
proxy fix healthcheck update problem introduced by #41223 2017-02-13 12:18:42 -08:00
quota Update generated files 2017-01-29 21:41:45 +01:00
registry Reconcile bootstrap clusterroles on server start 2017-02-14 12:33:05 -05:00
routes Update to use proxy subresource consistently 2017-02-13 22:05:00 -05:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
security Minor comments improvements. 2017-02-13 12:32:58 +01:00
securitycontext securitycontext: move docker-specific logic into kubelet/dockertools 2017-01-27 12:25:46 -08:00
serviceaccount Allow reading ECDSA key files containing parameter blocks 2017-02-01 10:18:58 -05:00
ssh use apimachinery packages instead of client-go packages 2017-01-13 14:04:54 -05:00
types add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
util Merge pull request #40645 from brendandburns/fr 2017-01-31 21:27:52 -08:00
version genericapiserver: cut off kube pkg/version dependency 2017-01-17 12:34:05 +01:00
volume Merge pull request #39928 from humblec/iscsi-multipath-backuptp 2017-02-13 12:18:55 -08:00
watch add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
BUILD react to informer updates 2017-02-13 09:18:32 -05:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00