2019-07-17 17:53:13 -07:00
|
|
|
package annotations
|
|
|
|
|
|
|
|
const annotationQueueName = "annotation-queue"
|
|
|
|
const workerThreadCount = 1
|
2019-07-17 23:13:28 -07:00
|
|
|
const WorkQueueRetryLimit = 3
|
2019-07-17 17:53:13 -07:00
|
|
|
|
|
|
|
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
|
2019-07-17 17:53:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func newInfo(rkind, rns, rname string, patch []byte) info {
|
|
|
|
return info{
|
|
|
|
RKind: rkind,
|
2019-07-17 23:13:28 -07:00
|
|
|
RNs: rns,
|
2019-07-17 17:53:13 -07:00
|
|
|
RName: rname,
|
2019-07-17 23:13:28 -07:00
|
|
|
Patch: &patch,
|
2019-07-17 17:53:13 -07:00
|
|
|
}
|
|
|
|
}
|