Skip to content

Commit

Permalink
allow setting a custom liveness probe timeout (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
swills authored Oct 31, 2024
1 parent b4ceaf6 commit 4f59dc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/mattermost/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func setProbes(customLiveness, customReadiness corev1.Probe) (*corev1.Probe, *co
liveness.PeriodSeconds = customLiveness.PeriodSeconds
}

if customLiveness.TimeoutSeconds != 0 {
liveness.TimeoutSeconds = customLiveness.TimeoutSeconds
}

if customLiveness.FailureThreshold != 0 {
liveness.FailureThreshold = customLiveness.FailureThreshold
}
Expand Down

0 comments on commit 4f59dc0

Please sign in to comment.