MCPcopy
hub / github.com/kubernetes/node-problem-detector / renewBoskosProject

Function renewBoskosProject

test/e2e/metriconly/e2e_npd_test.go:134–147  ·  view source on GitHub ↗
(boskosClient *client.Client, projectName string, boskosRenewingTomb *tomb.Tomb)

Source from the content-addressed store, hash-verified

132}
133
134func renewBoskosProject(boskosClient *client.Client, projectName string, boskosRenewingTomb *tomb.Tomb) {
135 defer boskosRenewingTomb.Done()
136 for {
137 select {
138 case <-time.Tick(5 * time.Minute):
139 fmt.Printf("Renewing boskosProject %q\n", projectName)
140 if err := boskosClient.UpdateOne(projectName, "busy", nil); err != nil {
141 fmt.Printf("Failed to update status for project %q with Boskos: %v\n", projectName, err)
142 }
143 case <-boskosRenewingTomb.Stopping():
144 return
145 }
146 }
147}
148
149// releaseBoskosResourcesOnNode1 releases all rented Boskos resources if there is any.
150func releaseBoskosResourcesOnNode1() {

Callers 1

Calls 2

DoneMethod · 0.80
StoppingMethod · 0.80

Tested by

no test coverage detected