Skip to content

Commit

Permalink
Set default value for TimeoutSeconds to be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshba committed Oct 7, 2019
1 parent 55c2567 commit 3a43799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/serving/v1/revision_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (rs *RevisionSpec) SetDefaults(ctx context.Context) {
}

if rs.PodSpec.Containers[idx].ReadinessProbe.TimeoutSeconds == 0 {
rs.PodSpec.Containers[idx].ReadinessProbe.TimeoutSeconds = 10
rs.PodSpec.Containers[idx].ReadinessProbe.TimeoutSeconds = 1
}
}
vms := rs.PodSpec.Containers[idx].VolumeMounts
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/serving/v1/revision_defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func TestRevisionDefaulting(t *testing.T) {
SuccessThreshold: 1,
PeriodSeconds: 10,
FailureThreshold: 4,
TimeoutSeconds: 10,
TimeoutSeconds: 1,
Handler: corev1.Handler{
TCPSocket: &corev1.TCPSocketAction{},
},
Expand Down

0 comments on commit 3a43799

Please sign in to comment.