From b244cb256e8677fc4c9e31ebbd5a7cf5120d04d5 Mon Sep 17 00:00:00 2001 From: shawnh2 Date: Sun, 14 Apr 2024 23:32:30 +0800 Subject: [PATCH] rm Empty method for SP Signed-off-by: shawnh2 --- internal/gatewayapi/securitypolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gatewayapi/securitypolicy.go b/internal/gatewayapi/securitypolicy.go index d0f1c69958d..c3547def448 100644 --- a/internal/gatewayapi/securitypolicy.go +++ b/internal/gatewayapi/securitypolicy.go @@ -472,7 +472,7 @@ func (t *Translator) translateSecurityPolicyForGateway( for _, r := range h.Routes { // If any of the features are already set, it means that a more specific // policy(targeting xRoute) has already set it, so we skip it. - if !r.Security.Empty() { + if r.Security != nil { continue }