API changes for multi-domain login redirects (#5565)

Add a depends_on field to the Route proto and update the to/from 
conversion methods.
This commit is contained in:
Kenneth Jenkins 2025-04-11 14:56:16 -07:00 committed by GitHub
parent 4af9150b39
commit 62addcf2a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 729 additions and 716 deletions

View file

@ -300,6 +300,7 @@ func NewPolicyFromProto(pb *configpb.Route) (*Policy, error) {
AllowWebsockets: pb.GetAllowWebsockets(),
CORSAllowPreflight: pb.GetCorsAllowPreflight(),
Description: pb.GetDescription(),
DependsOn: pb.GetDependsOn(),
EnableGoogleCloudServerlessAuthentication: pb.GetEnableGoogleCloudServerlessAuthentication(),
From: pb.GetFrom(),
HostPathRegexRewritePattern: pb.GetHostPathRegexRewritePattern(),
@ -458,6 +459,7 @@ func (p *Policy) ToProto() (*configpb.Route, error) {
AllowWebsockets: p.AllowWebsockets,
CorsAllowPreflight: p.CORSAllowPreflight,
Description: p.Description,
DependsOn: p.DependsOn,
EnableGoogleCloudServerlessAuthentication: p.EnableGoogleCloudServerlessAuthentication,
EnvoyOpts: p.EnvoyOpts,
From: p.From,