k3s/pkg/api
Kubernetes Submit Queue b3181ec2f3 Merge pull request #46305 from sjenning/init-container-status
Automatic merge from submit-queue

clear init container status annotations when cleared in status

When I pod with an init container is terminated due to exceeding its active deadline, the pod status is phase `Failed` with reason `DeadlineExceeded`.  All container statuses are cleared from the pod status.

With init containers, however, the status is being regenerated from the status annotations.  This is causing kubectl to report the pod state as `Init:0/1` instead of `DeadlineExceeded` because the kubectl printer observes a running init container, which in reality is not running.

This PR clears out the init container status annotations when they have been removed from the pod status so they are not regenerated on the apiserver.

xref https://bugzilla.redhat.com/show_bug.cgi?id=1453180

@derekwaynecarr 

```release-note
Fix init container status reporting when active deadline is exceeded.
```
2017-05-24 14:18:45 -07:00
..
endpoints autogenerated 2017-04-14 10:40:57 -07:00
errors Update bazel 2017-02-02 15:19:04 +01:00
events autogenerated 2017-04-14 10:40:57 -07:00
helper Merge pull request #46139 from monopole/removeDepOnPkgHelper 2017-05-23 19:42:59 -07:00
install autogenerated 2017-04-14 10:40:57 -07:00
meta add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
pod Add pod util for extracting referenced configmaps 2017-05-18 15:38:29 -04:00
ref autogenerated 2017-04-14 10:40:57 -07:00
resource move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
service Move defaulting logic for ExternalTrafficPolicy into defaults.go 2017-05-17 12:47:01 -07:00
testapi Used Pods interface for binding. 2017-04-19 21:32:38 +08:00
testing Support burst in stateful set scale up and down 2017-05-21 01:14:26 -04:00
unversioned Update 'More info' links on API types and fields 2017-05-15 13:32:25 -07:00
util add unit test for groupversion 2017-02-03 17:37:42 +08:00
v1 Merge pull request #46305 from sjenning/init-container-status 2017-05-24 14:18:45 -07:00
validation API changes for persistent local volumes. 2017-05-21 11:48:56 -07:00
BUILD Autogenerated files 2017-05-16 21:55:51 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00
annotation_key_constants.go Move API annotations into annotation_key_constants and remove api/annotations package 2017-05-16 21:55:23 -07:00
conversion_test.go pkg/api/testing: cut off fuzzers from static codecs 2017-02-02 06:58:28 +01:00
copy_test.go make round trip testing generic 2017-02-09 11:42:22 -05:00
deep_copy_test.go Remove the temporary fix for pre-1.0 mirror pods 2017-02-02 10:37:19 -08:00
defaulting_test.go Remove vestiges of defaulting from conversion path, switch to top-level default registration only 2017-04-12 13:36:15 -04:00
doc.go
field_constants.go
json.go Change taint/toleration annotations to api fields. 2017-02-22 09:27:42 -05:00
meta_test.go API 2017-02-28 23:05:40 -08:00
node_example.json
objectreference.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
register.go Remove vestiges of defaulting from conversion path, switch to top-level default registration only 2017-04-12 13:36:15 -04:00
replication_controller_example.json
resource.go move resource_helpers.go to a subpackage 2017-04-13 12:03:42 -07:00
serialization_proto_test.go Add a test that verifies all structs have protobuf tags 2017-03-17 00:29:14 -04:00
serialization_test.go apimachinery: handle duplicated and conflicting type registration 2017-02-27 21:58:21 +01:00
taint.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
taint_test.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
toleration.go move ref.go to its own subpackage 2017-04-13 10:02:43 -07:00
types.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
unstructured_test.go Unified unstructured converter interface and setup 2017-02-17 21:07:04 +01:00
zz_generated.deepcopy.go Generated code for local persistent volumes 2017-05-21 12:20:23 -07:00