mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
fix: startup probe
This commit is contained in:
parent
1c472c13bf
commit
3717872187
@ -59,7 +59,7 @@ func NewHTTPCommand() *cobra.Command {
|
|||||||
)
|
)
|
||||||
|
|
||||||
// start initial update and handle error
|
// start initial update and handle error
|
||||||
svr.AddReadinessHealthzers(healthz.NewHealthzerFn(func(ctx context.Context) error {
|
svr.AddStartupHealthzers(healthz.NewHealthzerFn(func(ctx context.Context) error {
|
||||||
if !r.Loaded() {
|
if !r.Loaded() {
|
||||||
return errors.New("repo not ready yet")
|
return errors.New("repo not ready yet")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user