Skip to content

Validation fails when using Weight element inside an LoadBalancer.Server #38

@micovery

Description

@micovery

type Server struct {
Name string `xml:"name,attr"`
IsFallback bool `xml:"IsFallback,omitempty"`
UnknownNode AnyList `xml:",any"`

The Server element inside a LoadBalancer also has Weight

https://cloud.google.com/apigee/docs/api-platform/deploy/load-balancing-across-backend-servers#weighted

<TargetEndpoint name="default">
  <HTTPTargetConnection>
    <LoadBalancer>
      <Algorithm>Weighted</Algorithm>
      <Server name="target1">
        <Weight>1</Weight>
      </Server>
      <Server name="target2">
        <Weight>2</Weight>
      </Server>
    </LoadBalancer>
    <Path>/test</Path>
  </HTTPTargetConnection>
</TargetEndpoint>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions