k3s/pkg/kubelet/dockershim
Kubernetes Submit Queue 7ff38a23f0
Merge pull request #62937 from vikaschoudhary16/fix-dockershim-e2e
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 dockershim e2e

**What this PR does / why we need it**:
Delete checkpoint file when GetCheckpoint fails due to corrupt checkpoint. Earlier, before checkpointmanager, [`GetCheckpoint` in dockershim was deleting corrupt checkpoint file implicitly](https://github.com/kubernetes/kubernetes/pull/56040/files#diff-9a174fa21408b7faeed35309742cc631L116). In checkpointmanager's `GetCheckpoint` this implicit deletion of corrupt checkpoint is not happening. Because of this few e2e tests are failing because these tests are testing this deletion.
Changes are being added to delete checkpoint file if found corrupted. 

**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 #62738 


**Special notes for your reviewer**:
No new behavior is being introduced. Implicit deletion of corrupt checkpoint is being done explicitly.

**Release note**:

```release-note
None
```
/cc @dashpole @sjenning @derekwaynecarr
2018-04-26 16:26:14 -07:00
..
cm Add detailed err in ensure docker process error 2018-01-30 15:02:22 +08:00
libdocker Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
metrics update BUILD files 2017-10-15 18:18:13 -07:00
network Update bazel BUILD files 2018-04-11 09:26:02 -07:00
remote Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
BUILD Merge pull request #62937 from vikaschoudhary16/fix-dockershim-e2e 2018-04-26 16:26:14 -07:00
convert.go Node-level Checkpointing manager 2018-04-16 00:19:42 -04:00
convert_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
doc.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
docker_checkpoint.go Node-level Checkpointing manager 2018-04-16 00:19:42 -04:00
docker_checkpoint_test.go Node-level Checkpointing manager 2018-04-16 00:19:42 -04:00
docker_container.go Fix dockershim CreateContainer error handling. 2018-03-31 00:39:20 +00:00
docker_container_test.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_image.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_image_linux.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_image_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
docker_image_unsupported.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_image_windows.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_legacy_service.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
docker_logs.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_sandbox.go Merge pull request #62937 from vikaschoudhary16/fix-dockershim-e2e 2018-04-26 16:26:14 -07:00
docker_sandbox_test.go dockershim/sandbox: clean up pod network even if SetUpPod() failed 2018-04-24 11:17:49 -05:00
docker_service.go Node-level Checkpointing manager 2018-04-16 00:19:42 -04:00
docker_service_test.go Make 'pod' package to use unified checkpointManager 2018-04-16 01:30:20 -04:00
docker_stats_linux.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_stats_unsupported.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_stats_windows.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
docker_streaming.go Replace "golang.org/x/net/context" with "context" 2018-03-22 20:57:14 +08:00
exec.go
helpers.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
helpers_linux.go Change docker/default to runtime/default 2018-04-19 10:39:53 -07:00
helpers_linux_test.go Change docker/default to runtime/default 2018-04-19 10:39:53 -07:00
helpers_test.go Merge pull request #59317 from CaoShuFeng/assert_Equal 2018-04-17 16:31:17 -07:00
helpers_unsupported.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
helpers_windows.go Setup docker hostconfig for windows containers 2018-02-28 09:56:46 +08:00
naming.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
naming_test.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
security_context.go Move the kubelet network package down to dockershim 2018-04-11 09:25:56 -07:00
security_context_test.go API Changes for RunAsGroup and Implementation and e2e 2018-02-28 22:09:56 -08:00
selinux_util.go Increment CRI version from v1alpha1 to v1alpha2 2018-02-07 09:06:26 +01:00
selinux_util_test.go