Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add match method on all var() sample fetch method #879

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

jcmoraisjr
Copy link
Owner

Historically var() sample fetch used to return string so a match method was optional. Currently var() returns undefined, and since 2.5 the match method is mandatory. This helps to not make bogus configuration, when e.g. an int type is expected but it's in fact matched as string. See https://www.mail-archive.com/haproxy@formilux.org/msg41341.html

This update should be merged as far as v0.12, which is the first controller version that supports external haproxy.

Historically var() sample fetch used to return string so a match method
was optional. Currently var() returns undefined, and since 2.5 the
match method is mandatory. This helps to not make bogus configuration,
when e.g. an int type is expected but it's in fact matched as string.
See https://www.mail-archive.com/haproxy@formilux.org/msg41341.html

This update should be merged as far as v0.12, which is the first
controller version that supports external haproxy.
@jcmoraisjr jcmoraisjr merged commit d4e85a7 into master Dec 30, 2021
@jcmoraisjr jcmoraisjr deleted the jm-add-match-method branch December 30, 2021 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant