Skip to content

Commit

Permalink
pkg/daemon: update drain helper timeout to 90s to accomodate pods wit…
Browse files Browse the repository at this point in the history
…h longer

expected eviction times for example: openshift-ingress/router

The 20s timeout was added when the switch to the upstream drain lib was made,
which resulted in router pod erroring on 20s consistently.
  • Loading branch information
kikisdeliveryservice committed May 27, 2020
1 parent 9830ac7 commit b40112d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/daemon.go
Expand Up @@ -298,7 +298,7 @@ func (dn *Daemon) ClusterConnect(
IgnoreAllDaemonSets: true,
DeleteLocalData: true,
GracePeriodSeconds: -1,
Timeout: 20 * time.Second,
Timeout: 90 * time.Second,
OnPodDeletedOrEvicted: func(pod *corev1.Pod, usingEviction bool) {
verbStr := "Deleted"
if usingEviction {
Expand Down

0 comments on commit b40112d

Please sign in to comment.