MINOR: cfgparse-global: parse options to allow non std keywords in discovery mode
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 19 Nov 2024 09:47:38 +0000 (10:47 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 19 Nov 2024 13:13:19 +0000 (14:13 +0100)
commit39ea0df38ffc44a8d78a5524f50d22b25cd78101
treeb7447cb942c50f8ef9e254b5164a4fe19e2f52cf
parentf8d3d2e4cf384dd8a59f1d3dd712e43c26425370
MINOR: cfgparse-global: parse options to allow non std keywords in discovery mode

'Program' section is considered as deprecated now, see the commit 581c8a27d98c
("MEDIUM: mworker: depreciate the 'program' section"). So, the 'program'
section parser emits a warning every time since this commit, if its section is
presented. This makes impossible to launch the process in zero-warning mode.

After master-worker refactoring only the master process parses the 'program'
section. So, at first, in order to be able to start in zero-warning mode, we
need to parse in master process option, which allows deprecated keywords. Thus,
let's set in this commit KWF_DISCOVERY flag to
cfg_parse_global_non_std_directives parser, which parses
'expose-deprecated-directives' and 'expose-deprecated-directives' options.
src/cfgparse-global.c