Skip to content

Commit 2b3d5cb

Browse files
arikalon1Robusta Runner
andauthored
fixed bug when multiple CRDs are configured. (#85)
Co-authored-by: Robusta Runner <[email protected]>
1 parent 80907c6 commit 2b3d5cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/controller/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ func Start(conf *config.Config, eventHandler handlers.Handler) {
548548
go c.Run(stopCh)
549549
}
550550

551-
for _, crd := range conf.CustomResources {
551+
for _, curRes := range conf.CustomResources {
552+
crd := curRes
552553
informer := cache.NewSharedIndexInformer(
553554
&cache.ListWatch{
554555
ListFunc: func(options meta_v1.ListOptions) (runtime.Object, error) {

0 commit comments

Comments
 (0)