Skip to content

Commit 61608d0

Browse files
author
Per Goncalves da Silva
committed
next little change
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent e016e73 commit 61608d0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pkg/lib/queueinformer/queueinformer_operator.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,21 @@ func (o *operator) processNextWorkItem(ctx context.Context, loop *QueueInformer)
276276
var event = item
277277
if item.Type() != kubestate.ResourceDeleted {
278278
// Get the key
279-
key, keyable := loop.key(item)
280-
if !keyable {
279+
//key, keyable := loop.key(item)
280+
//if !keyable {
281+
// logger.WithField("item", item).Warn("could not form key")
282+
// queue.Forget(item)
283+
// return true
284+
//}
285+
key, ok := item.Resource().(string)
286+
if !ok {
281287
logger.WithField("item", item).Warn("could not form key")
282288
queue.Forget(item)
283289
return true
284290
}
285291

286292
logger = logger.WithField("cache-key", key)
287-
293+
288294
// Get the current cached version of the resource
289295
var exists bool
290296
var err error

0 commit comments

Comments
 (0)