mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
Fixup bexpr filtering
This commit is contained in:
parent
7bd51ff536
commit
b8ed82b808
@ -95,6 +95,14 @@ var expectedFieldConfigMeshGatewayConfig bexpr.FieldConfigurations = bexpr.Field
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var expectedFieldConfigTransparentProxyConfig bexpr.FieldConfigurations = bexpr.FieldConfigurations{
|
||||||
|
"OutboundListenerPort": &bexpr.FieldConfiguration{
|
||||||
|
StructFieldName: "OutboundListenerPort",
|
||||||
|
CoerceFn: bexpr.CoerceInt,
|
||||||
|
SupportedOperations: []bexpr.MatchOperator{bexpr.MatchEqual, bexpr.MatchNotEqual},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
var expectedFieldConfigExposeConfig bexpr.FieldConfigurations = bexpr.FieldConfigurations{
|
var expectedFieldConfigExposeConfig bexpr.FieldConfigurations = bexpr.FieldConfigurations{
|
||||||
"Checks": &bexpr.FieldConfiguration{
|
"Checks": &bexpr.FieldConfiguration{
|
||||||
StructFieldName: "Checks",
|
StructFieldName: "Checks",
|
||||||
@ -209,8 +217,12 @@ var expectedFieldConfigConnectProxyConfig bexpr.FieldConfigurations = bexpr.Fiel
|
|||||||
},
|
},
|
||||||
"TransparentProxy": &bexpr.FieldConfiguration{
|
"TransparentProxy": &bexpr.FieldConfiguration{
|
||||||
StructFieldName: "TransparentProxy",
|
StructFieldName: "TransparentProxy",
|
||||||
CoerceFn: bexpr.CoerceBool,
|
SubFields: expectedFieldConfigTransparentProxyConfig,
|
||||||
SupportedOperations: []bexpr.MatchOperator{bexpr.MatchEqual, bexpr.MatchNotEqual},
|
},
|
||||||
|
"Mode": &bexpr.FieldConfiguration{
|
||||||
|
StructFieldName: "Mode",
|
||||||
|
CoerceFn: bexpr.CoerceString,
|
||||||
|
SupportedOperations: []bexpr.MatchOperator{bexpr.MatchEqual, bexpr.MatchNotEqual, bexpr.MatchIn, bexpr.MatchNotIn, bexpr.MatchMatches, bexpr.MatchNotMatches},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user