1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-08 17:06:57 +00:00
kyverno/pkg/controller/utils.go

22 lines
416 B
Go
Raw Normal View History

2019-05-13 18:17:28 -07:00
package controller
2019-05-10 00:05:21 -07:00
2019-07-15 14:49:22 -07:00
import (
"bytes"
v1alpha1 "github.com/nirmata/kyverno/pkg/apis/policy/v1alpha1"
)
2019-05-10 00:05:21 -07:00
const policyWorkQueueName = "policyworkqueue"
2019-07-19 16:17:10 -07:00
const policyWorkQueueRetryLimit = 3
2019-05-10 00:05:21 -07:00
const policyControllerWorkerCount = 2
2019-07-15 14:49:22 -07:00
func concatFailedRules(frules []v1alpha1.FailedRule) string {
var buffer bytes.Buffer
for _, frule := range frules {
buffer.WriteString(frule.Name + ";")
}
return buffer.String()
}