Skip to content

Commit

Permalink
support mergeGateways in EnvoyPatchPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: Karol Szwaj <[email protected]>
  • Loading branch information
cnvergence committed Dec 18, 2023
1 parent b6de1fc commit bf8eaa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gatewayapi/envoypatchpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func (t *Translator) ProcessEnvoyPatchPolicies(envoyPatchPolicies []*egv1a1.Envo
// Get the IR
// It must exist since the gateways have already been processed
irKey := irStringKey(string(*targetNs), string(policy.Spec.TargetRef.Name))
if t.MergeGateways {
irKey = string(t.GatewayClassName)
}

Check warning on line 42 in internal/gatewayapi/envoypatchpolicy.go

View check run for this annotation

Codecov / codecov/patch

internal/gatewayapi/envoypatchpolicy.go#L41-L42

Added lines #L41 - L42 were not covered by tests

gwXdsIR, ok := xdsIR[irKey]
if !ok {
// This status condition will not get updated in the resource because
Expand Down

0 comments on commit bf8eaa4

Please sign in to comment.