1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 18:15:48 +00:00

correct case

This commit is contained in:
shivkumar dudhani 2019-07-19 16:18:36 -07:00
parent 91030987ea
commit 4166d13684
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ func (c *controller) handleErr(err error, key interface{}) {
return
}
// This controller retries if something goes wrong. After that, it stops trying.
if c.queue.NumRequeues(key) < WorkQueueRetryLimit {
if c.queue.NumRequeues(key) < workQueueRetryLimit {
glog.Warningf("Error syncing events %v: %v", key, err)
// Re-enqueue the key rate limited. Based on the rate limiter on the
// queue and the re-enqueue history, the key will be processed later again.

View file

@ -6,7 +6,7 @@ const eventWorkQueueName = "policy-controller-events"
const eventWorkerThreadCount = 1
const WorkQueueRetryLimit = 1
const workQueueRetryLimit = 1
//Info defines the event details
type Info struct {