Skip to content

Commit

Permalink
fixed bug when multiple CRDs are configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robusta Runner committed Aug 30, 2024
1 parent 80907c6 commit 22a2492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ func Start(conf *config.Config, eventHandler handlers.Handler) {
go c.Run(stopCh)
}

for _, crd := range conf.CustomResources {
for _, curRes := range conf.CustomResources {
crd := curRes
informer := cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options meta_v1.ListOptions) (runtime.Object, error) {
Expand Down

0 comments on commit 22a2492

Please sign in to comment.