]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cfgparse: implement experimental config keywords
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 6 May 2021 14:21:39 +0000 (16:21 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 May 2021 12:34:41 +0000 (14:34 +0200)
commitd2e53cd47e845d3d16f964d533cd11ccca8bece6
tree1cc720b1796fb1442ccd422e39c0040b5dcfa0ae
parentfae9edf47077adccf180cf993b797d20c954def7
MINOR: cfgparse: implement experimental config keywords

Add a new flag to mark a keyword as experimental. An experimental
keyword cannot be used if the global 'expose-experimental-directives' is
not present first.

Only keywords parsed through a standard cfg_keywords lists in
global/proxies section will be automatically detected if declared
experimental. To support a keyword outside of these lists,
check_kw_experimental must be called manually during its parsing.

If an experimental keyword is present in the config, the tainted flag is
updated.

For the moment, no keyword is marked as experimental.
doc/configuration.txt
include/haproxy/cfgparse.h
include/haproxy/global.h
src/cfgparse-global.c
src/cfgparse-listen.c
src/haproxy.c