MCPcopy Create free account
hub / github.com/FairwindsOps/gemini / enqueue

Method enqueue

pkg/controller/controller.go:103–114  ·  view source on GitHub ↗
(sg interface{}, todo task)

Source from the content-addressed store, hash-verified

101}
102
103func (c *Controller) enqueue(sg interface{}, todo task) {
104 acc, _ := meta.Accessor(sg)
105 name := acc.GetName()
106 namespace := acc.GetNamespace()
107 w := workItem{
108 name: name,
109 namespace: namespace,
110 task: todo,
111 snapshotGroup: sg.(*snapshotgroup.SnapshotGroup),
112 }
113 c.workqueue.Add(w)
114}
115
116func (c *Controller) runWorker() {
117 for c.processNextWorkItem() {

Callers 2

NewControllerFunction · 0.95
TestControllerQueueFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestControllerQueueFunction · 0.64