diff --git a/pkg/envoy/resource/types.go b/pkg/envoy/resource/types.go index 95a52d2db..4acabf550 100644 --- a/pkg/envoy/resource/types.go +++ b/pkg/envoy/resource/types.go @@ -215,6 +215,14 @@ func (r *Ref) IsWildcard() bool { } func (a *Ref) equals(b *Ref) bool { + if a == nil && a == b { + return true + } + + if a == nil && a != b { + return false + } + if a.ResourceType != b.ResourceType { return false }