Skip to content

Commit 5f282a5

Browse files
committed
BUG/MAJOR: set hard-stop-after with default value of 30m
during reorg default value was removed
1 parent 62f8c16 commit 5f282a5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

documentation/annotations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This is autogenerated from [doc.yaml](doc.yaml). Description can be found in [ge
3737
| [dontlognull](#logging) | [bool](#bool) | "true" | |:large_blue_circle:|:white_circle:|:white_circle:|
3838
| [src-ip-header](#src-ip-header) | string | "null" | |:large_blue_circle:|:large_blue_circle:|:white_circle:|
3939
| [forwarded-for](#x-forwarded-for) | [bool](#bool) | "true" | |:large_blue_circle:|:large_blue_circle:|:large_blue_circle:|
40-
| [hard-stop-after](#hard-stop-after) | [time](#time) | "1h" | |:large_blue_circle:|:white_circle:|:white_circle:|
40+
| [hard-stop-after](#hard-stop-after) | [time](#time) | "30m" | |:large_blue_circle:|:white_circle:|:white_circle:|
4141
| [http-keep-alive](#http-options) | [bool](#bool) | "true" | |:large_blue_circle:|:white_circle:|:white_circle:|
4242
| [http-server-close](#http-options) | [bool](#bool) | "false" | |:large_blue_circle:|:white_circle:|:white_circle:|
4343
| [ingress.class](#ingress-class) | string | | |:white_circle:|:large_blue_circle:|:white_circle:|

documentation/doc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ annotations:
921921
type: "[time](#time)"
922922
group: hard-stop-after
923923
dependencies: ""
924-
default: "1h"
924+
default: "30m"
925925
description:
926926
- Defines the maximum time allowed to perform a clean soft-stop.
927927
tip: []

pkg/haproxy/env/defaults.go

+3
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ func SetGlobal(global *models.Global, logTargets *models.LogTargets, env Env) {
6464
}
6565
}
6666
}
67+
if global.HardStopAfter == nil {
68+
global.HardStopAfter = utils.PtrInt64(1800000) // 30m
69+
}
6770
}
6871

6972
// SetDefaults will set default values for Defaults section config.

0 commit comments

Comments
 (0)