apigeelint icon indicating copy to clipboard operation
apigeelint copied to clipboard

warn when LoadBalancer has multiple fallbacks

Open dfong opened this issue 5 months ago • 0 comments

apigee LoadBalancer documentation says that a LoadBalancer should have at most one fallback. https://cloud.google.com/apigee/docs/api-platform/deploy/load-balancing-across-backend-servers#settingloadbalanceroptions-isfallback

i would like apigeelint to issue a warning if the rule is violated. for example, this should generate a warning:

<LoadBalancer>
    <Server name="gateway-east"><IsFallback>true</IsFallback></Server>
    <Server name="gateway-east"><IsFallback>true</IsFallback></Server>
</LoadBalancer>

i would prefer that apigeelint treat this as a warning rather than an error, since the rule is not currently enforced by the control plane.

dfong avatar Sep 20 '24 17:09 dfong