1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/pkg/annotations/utils.go

23 lines
397 B
Go
Raw Normal View History

package annotations
const annotationQueueName = "annotation-queue"
const workerThreadCount = 1
2019-07-17 23:13:28 -07:00
const WorkQueueRetryLimit = 3
type info struct {
RKind string
RNs string
RName string
2019-07-17 23:13:28 -07:00
//TODO:Hack as slice makes the struct unhasable
Patch *[]byte
}
func newInfo(rkind, rns, rname string, patch []byte) info {
return info{
RKind: rkind,
2019-07-17 23:13:28 -07:00
RNs: rns,
RName: rname,
2019-07-17 23:13:28 -07:00
Patch: &patch,
}
}