Skip to content

Commit

Permalink
MINOR: remove load-server-state-from-file from Global
Browse files Browse the repository at this point in the history
  • Loading branch information
hdurand0710 committed Jan 8, 2024
1 parent 7e0743b commit 128a31d
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 73 deletions.
2 changes: 2 additions & 0 deletions configuration/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ global
set-var proc.threshold int(200),sub(proc.prio)
set-var-fmt proc.bootid "%pid|%t"
set-var-fmt proc.current_state "primary"
server-state-base /path
server-state-file serverstatefile
presetenv first order
setenv third sister
resetenv first second
Expand Down
6 changes: 6 additions & 0 deletions configuration/global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ func TestGetGlobal(t *testing.T) {
if global.SpreadChecks != 10 {
t.Errorf("SpreadChecks is %v, expected 10", global.SpreadChecks)
}
if global.ServerStateBase != "/path" {
t.Errorf("ServerStateBase is %v, expected /path", global.ServerStateBase)
}
if global.ServerStateFile != "serverstatefile" {
t.Errorf("ServerStateFile is %v, expected serverstatefile", global.ServerStateFile)
}
if global.WurflOptions.DataFile != "path" {
t.Errorf("WurflDataFile is %v, expected path", global.WurflOptions.DataFile)
}
Expand Down
54 changes: 0 additions & 54 deletions models/global.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions models/global_compare.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions models/global_compare_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions specification/build/haproxy_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,12 +1212,6 @@ definitions:
type: string
limited_quic:
type: boolean
load_server_state_from_file:
enum:
- global
- local
- none
type: string
localpeer:
pattern: ^[^\s]+$
type: string
Expand Down
3 changes: 0 additions & 3 deletions specification/models/configuration/global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,6 @@ global:
unsetenv:
type: string
x-display-name: Removes environment variables specified in arguments
load_server_state_from_file:
type: string
enum: [global, local, none]
default_path:
type: object
required:
Expand Down

0 comments on commit 128a31d

Please sign in to comment.