Skip to content

Commit

Permalink
Fix TrackKind behavior
Browse files Browse the repository at this point in the history
- fix issue that prevented more than one clusterbuilder from tracking a particular kind

fixes #1211
  • Loading branch information
tomkennedy513 committed May 18, 2023
1 parent 1c20046 commit 927e760
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ import (
"sync"
"time"

"github.com/pivotal/kpack/pkg/reconciler"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"

"github.com/pivotal/kpack/pkg/reconciler"
)

func New(callback func(types.NamespacedName), lease time.Duration) *Tracker {
Expand Down Expand Up @@ -82,7 +83,7 @@ func (i *Tracker) TrackKind(kind schema.GroupKind, obj types.NamespacedName) {
i.m.Lock()
defer i.m.Unlock()

l, ok := i.objects[kind.String()]
l, ok := i.kinds[kind.String()]
if !ok {
l = set{}
}
Expand Down

0 comments on commit 927e760

Please # to comment.