kubernetes/pkg/api/v1
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
helper Merge pull request #44640 from msau42/local-pv-api 2017-05-22 14:39:05 -07:00
node 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
pod clear init container status annotations when cleared in status 2017-05-23 18:31:49 -05:00
ref 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
resource bazel 2017-04-27 09:41:53 -07:00
service Move defaulting logic for ExternalTrafficPolicy into defaults.go 2017-05-17 12:47:01 -07:00
validation autogenerated 2017-04-14 10:40:57 -07: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
backward_compatibility_test.go Refactor printers to separate typed printers from generic code 2017-02-23 00:28:30 -05:00
BUILD 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
conversion_test.go Remove vestiges of defaulting from conversion path, switch to top-level default registration only 2017-04-12 13:36:15 -04:00
conversion.go Keep annotation_key_constants consistent 2017-05-16 14:25:30 -07:00
defaults_test.go Move defaulting logic for ExternalTrafficPolicy into defaults.go 2017-05-17 12:47:01 -07:00
defaults.go Add new AzureDisk API, but not implementation. 2017-05-18 11:36:42 -07:00
doc.go Flag all packages as needing defaulters 2016-10-18 21:07:33 -04:00
generate.go move pkg/util/rand 2017-01-16 16:04:03 -05:00
generated.pb.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
generated.proto Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
meta.go Add initializers and includeUninitialized to the API 2017-05-18 10:07:45 -04:00
objectreference.go 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
OWNERS Update OWNERS approvers and reviewers: pkg/api 2016-11-09 10:18:08 -08:00
register.go make it possible to move SchemeBuilder with zz_generated.deepcopy.go 2017-04-27 16:57:29 -07:00
resource.go 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
taint_test.go move pkg/api/v1/helpers.go to subpackage 2017-04-14 14:25:11 -07:00
taint.go move pkg/api/v1/helpers.go to subpackage 2017-04-14 14:25:11 -07:00
toleration_test.go move pkg/api/v1/helpers.go to subpackage 2017-04-14 14:25:11 -07:00
toleration.go move pkg/api/v1/helpers.go to subpackage 2017-04-14 14:25:11 -07:00
types_swagger_doc_generated.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
types.generated.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
types.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
zz_generated.conversion.go Kubernetes core API changes for vSphere 2017-05-22 19:43:29 -07:00
zz_generated.deepcopy.go Generated code for local persistent volumes 2017-05-21 12:20:23 -07:00
zz_generated.defaults.go Autogenerated files 2017-05-17 12:55:56 -07:00