Skip to content

Commit

Permalink
Set initial delay seconds for startup probe as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-hontarau committed Apr 2, 2024
1 parent 133e1b4 commit 27daf04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions internal/controller/factory/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ func getStartupProbe(probe *corev1.Probe) *corev1.Probe {
Port: intstr.FromInt32(2379),
},
},
InitialDelaySeconds: 1,
PeriodSeconds: 5,
PeriodSeconds: 5,
}
return mergeWithDefaultProbe(probe, defaultProbe)
}
Expand Down
6 changes: 3 additions & 3 deletions internal/controller/factory/statefulset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var _ = Describe("CreateOrUpdateStatefulSet handler", func() {
Scheme: v1.URISchemeHTTP,
},
},
InitialDelaySeconds: 1,
InitialDelaySeconds: 0,
TimeoutSeconds: 1,
PeriodSeconds: 5,
SuccessThreshold: 1,
Expand Down Expand Up @@ -223,7 +223,7 @@ var _ = Describe("CreateOrUpdateStatefulSet handler", func() {
Scheme: v1.URISchemeHTTP,
},
},
InitialDelaySeconds: 1,
InitialDelaySeconds: 0,
TimeoutSeconds: 1,
PeriodSeconds: 7,
SuccessThreshold: 1,
Expand Down Expand Up @@ -390,7 +390,7 @@ var _ = Describe("CreateOrUpdateStatefulSet handler", func() {
Port: intstr.FromInt32(2379),
},
},
InitialDelaySeconds: 1,
InitialDelaySeconds: 0,
PeriodSeconds: 5,
}))
})
Expand Down

0 comments on commit 27daf04

Please sign in to comment.