File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
internal/controller/state/graph Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -308,17 +308,19 @@ func buildSectionNameRefs(
308
308
}
309
309
310
310
// If there is no section name, handle based on whether port is specified
311
+ // FIXME(sarthyparty): this logic seems to be duplicated in findAttachableListeners so we should refactor this,
312
+ // either here or in findAttachableListeners
311
313
if p .SectionName == nil {
312
314
// If port is specified, preserve the port-only nature for proper validation
313
315
if p .Port != nil {
314
316
sectionNameRefs = append (sectionNameRefs , ParentRef {
315
317
Idx : i ,
316
318
Gateway : CreateParentRefGateway (gw ),
317
319
SectionName : nil , // Keep as nil to preserve port-only semantics
318
- Port : p . Port ,
320
+ Port : nil ,
319
321
})
320
322
} else {
321
- // If no port and no sectionName, expand to all listeners (existing behavior)
323
+ // If no port and no sectionName, expand to all listeners
322
324
for _ , l := range gw .Listeners {
323
325
k .sectionName = string (l .Source .Name )
324
326
You can’t perform that action at this time.
0 commit comments