Skip to content

Commit

Permalink
🔧 add sigkill for errors on initcontainer
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <rintaro.okamura@gmail.com>
  • Loading branch information
rinx committed Jun 12, 2020
1 parent b053c56 commit 05aa4bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/agent/sidecar/service/restorer/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ func (r *restorer) startRestore(ctx context.Context) (<-chan error, error) {

return nil, nil
})
if err != nil {
return p.Signal(syscall.SIGKILL) // TODO: #403
}

return p.Signal(syscall.SIGTERM) // TODO: #403
}))
Expand Down

0 comments on commit 05aa4bd

Please sign in to comment.