Skip to content

Commit

Permalink
BUG/MAJOR: set hard-stop-after with default value of 30m
Browse files Browse the repository at this point in the history
during reorg default value was removed
  • Loading branch information
oktalz committed Oct 19, 2022
1 parent 62f8c16 commit 5f282a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion documentation/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This is autogenerated from [doc.yaml](doc.yaml). Description can be found in [ge
| [dontlognull](#logging) | [bool](#bool) | "true" | |:large_blue_circle:|:white_circle:|:white_circle:|
| [src-ip-header](#src-ip-header) | string | "null" | |:large_blue_circle:|:large_blue_circle:|:white_circle:|
| [forwarded-for](#x-forwarded-for) | [bool](#bool) | "true" | |:large_blue_circle:|:large_blue_circle:|:large_blue_circle:|
| [hard-stop-after](#hard-stop-after) | [time](#time) | "1h" | |:large_blue_circle:|:white_circle:|:white_circle:|
| [hard-stop-after](#hard-stop-after) | [time](#time) | "30m" | |:large_blue_circle:|:white_circle:|:white_circle:|
| [http-keep-alive](#http-options) | [bool](#bool) | "true" | |:large_blue_circle:|:white_circle:|:white_circle:|
| [http-server-close](#http-options) | [bool](#bool) | "false" | |:large_blue_circle:|:white_circle:|:white_circle:|
| [ingress.class](#ingress-class) | string | | |:white_circle:|:large_blue_circle:|:white_circle:|
Expand Down
2 changes: 1 addition & 1 deletion documentation/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ annotations:
type: "[time](#time)"
group: hard-stop-after
dependencies: ""
default: "1h"
default: "30m"
description:
- Defines the maximum time allowed to perform a clean soft-stop.
tip: []
Expand Down
3 changes: 3 additions & 0 deletions pkg/haproxy/env/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func SetGlobal(global *models.Global, logTargets *models.LogTargets, env Env) {
}
}
}
if global.HardStopAfter == nil {
global.HardStopAfter = utils.PtrInt64(1800000) // 30m
}
}

// SetDefaults will set default values for Defaults section config.
Expand Down

0 comments on commit 5f282a5

Please sign in to comment.