mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
16 lines
308 B
Go
16 lines
308 B
Go
package annotations
|
|
|
|
const annotationQueueName = "annotation-queue"
|
|
const workerThreadCount = 1
|
|
const workQueueRetryLimit = 3
|
|
|
|
func getStatus(status bool) string {
|
|
if status {
|
|
return "Success"
|
|
}
|
|
return "Failure"
|
|
}
|
|
|
|
func BuildKey(policyName string) string {
|
|
return "policies.kyverno.io/" + policyName
|
|
}
|