Skip to content

Commit

Permalink
Fix for #5210
Browse files Browse the repository at this point in the history
Remove these from the unrecoverable errors list.  Containers are
ephemeral in k8s, so errors in them may be recoverable at a system
level.  E.g. when they are waiting for another resource to stablelize.
  • Loading branch information
casret committed May 5, 2021
1 parent a9a18d8 commit 56192e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions pkg/skaffold/deploy/resource/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ var (
MsgKubectlConnection = "kubectl connection error\n"

nonRetryContainerErrors = map[proto.StatusCode]struct{}{
proto.StatusCode_STATUSCHECK_IMAGE_PULL_ERR: {},
proto.StatusCode_STATUSCHECK_RUN_CONTAINER_ERR: {},
proto.StatusCode_STATUSCHECK_CONTAINER_TERMINATED: {},
proto.StatusCode_STATUSCHECK_CONTAINER_RESTARTING: {},
proto.StatusCode_STATUSCHECK_IMAGE_PULL_ERR: {},
}
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/deploy/status/status_check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func TestPollDeployment(t *testing.T) {
"pod",
"dep-pod",
"Pending",
proto.ActionableErr{ErrCode: proto.StatusCode_STATUSCHECK_CONTAINER_TERMINATED},
proto.ActionableErr{ErrCode: proto.StatusCode_STATUSCHECK_IMAGE_PULL_ERR},
[]string{"err"})},
},
expected: proto.StatusCode_STATUSCHECK_DEPLOYMENT_ROLLOUT_PENDING,
Expand Down

0 comments on commit 56192e1

Please sign in to comment.