Skip to content

Watch SnippetsFilters when feature is enabled and add to graph #2519

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove duplicate log
  • Loading branch information
Kate Osborn committed Sep 6, 2024
commit 3d9ec1956b4ebad3a76f2507ea975eff0e512c7d
2 changes: 0 additions & 2 deletions internal/mode/static/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
updateGatewayClassStatus: cfg.UpdateGatewayClassStatus,
})

objects, objectLists := prepareFirstEventBatchPreparerArgs(cfg)

Check warning on line 244 in internal/mode/static/manager.go

View check run for this annotation

Codecov / codecov/patch

internal/mode/static/manager.go#L244

Added line #L244 was not covered by tests

firstBatchPreparer := events.NewFirstEventBatchPreparerImpl(mgr.GetCache(), objects, objectLists)
eventLoop := events.NewEventLoop(
Expand Down Expand Up @@ -530,17 +530,15 @@
}
}

if cfg.SnippetsFilters {
cfg.Logger.V(1).Info("Registering controller for SnippetsFilter")

controllerRegCfgs = append(controllerRegCfgs,
ctlrCfg{
objectType: &ngfAPI.SnippetsFilter{},
options: []controller.Option{
controller.WithK8sPredicate(k8spredicate.GenerationChangedPredicate{}),
},
},
)

Check warning on line 541 in internal/mode/static/manager.go

View check run for this annotation

Codecov / codecov/patch

internal/mode/static/manager.go#L533-L541

Added lines #L533 - L541 were not covered by tests
}

for _, regCfg := range controllerRegCfgs {
Expand Down
Loading