Skip to content

Commit

Permalink
Set TerminationGracePeriodSecond for wathola-sender to 300 seconds (#…
Browse files Browse the repository at this point in the history
…6207)

* There may be blocking calls in the sender which can take longer than
the default period. This prevents the infinite loop from handling the
SIGTERM, resulting in not sending a Stop event.

Co-authored-by: Martin Gencur <mgencur@redhat.com>
  • Loading branch information
knative-prow-robot and mgencur authored Feb 28, 2022
1 parent 282bba7 commit 315975c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/upgrade/prober/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var senderName = "wathola-sender"
func (p *prober) deploySender() {
p.log.Info("Deploy sender deployment: ", senderName)
var replicas int32 = 1
var gracePeriodSeconds int64 = 300
deployment := &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{
Name: senderName,
Expand Down Expand Up @@ -68,6 +69,7 @@ func (p *prober) deploySender() {
MountPath: p.config.ConfigMountPoint,
}},
}},
TerminationGracePeriodSeconds: &gracePeriodSeconds,
},
},
},
Expand Down

0 comments on commit 315975c

Please sign in to comment.