Skip to content

Commit

Permalink
fixed bug when multiple CRDs are configured. (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Robusta Runner <[email protected]>
  • Loading branch information
arikalon1 and Robusta Runner authored Aug 30, 2024
1 parent 80907c6 commit 2b3d5cb
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 2b3d5cb

Please sign in to comment.