mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
22 lines
397 B
Go
22 lines
397 B
Go
package annotations
|
|
|
|
const annotationQueueName = "annotation-queue"
|
|
const workerThreadCount = 1
|
|
const WorkQueueRetryLimit = 3
|
|
|
|
type info struct {
|
|
RKind string
|
|
RNs string
|
|
RName string
|
|
//TODO:Hack as slice makes the struct unhasable
|
|
Patch *[]byte
|
|
}
|
|
|
|
func newInfo(rkind, rns, rname string, patch []byte) info {
|
|
return info{
|
|
RKind: rkind,
|
|
RNs: rns,
|
|
RName: rname,
|
|
Patch: &patch,
|
|
}
|
|
}
|