Skip to content

Commit

Permalink
Merge pull request #1682 from replicatedhq/divolgin/etcd
Browse files Browse the repository at this point in the history
also ignore EOF network errors in non-critical paths
  • Loading branch information
divolgin committed Mar 29, 2021
2 parents 33329bd + 492e354 commit fe49146
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/store/kotsstore/kots_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ func canIgnoreEtcdError(err error) bool {
return true
}

if strings.Contains(err.Error(), "EOF") {
return true
}

return false
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/store/ocistore/oci_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ func canIgnoreEtcdError(err error) bool {
return true
}

if strings.Contains(err.Error(), "EOF") {
return true
}

return false
}

Expand Down

0 comments on commit fe49146

Please sign in to comment.