Skip to content

Commit

Permalink
Add reaper client to GC containers
Browse files Browse the repository at this point in the history
- Use reaper client to delete multiple container handles

Signed-off-by: Shash Reddy <sreddy@pivotal.io>
  • Loading branch information
Joris Melchior committed Apr 18, 2018
1 parent 954d289 commit bd7423f
Show file tree
Hide file tree
Showing 18 changed files with 449 additions and 147 deletions.
51 changes: 51 additions & 0 deletions db/dbfakes/fake_worker.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 70 additions & 24 deletions db/migration/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN;

ALTER TABLE workers DROP COLUMN reaper_addr;

COMMIT;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BEGIN;

ALTER TABLE workers ADD COLUMN reaper_addr text;

COMMIT;
3 changes: 3 additions & 0 deletions db/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type Worker interface {
State() WorkerState
GardenAddr() *string
BaggageclaimURL() *string
ReaperAddr() *string
CertsPath() *string
ResourceCerts() (*UsedWorkerResourceCerts, bool, error)
HTTPProxyURL() string
Expand Down Expand Up @@ -62,6 +63,7 @@ type worker struct {
state WorkerState
gardenAddr *string
baggageclaimURL *string
reaperAddr *string
httpProxyURL string
httpsProxyURL string
noProxy string
Expand All @@ -82,6 +84,7 @@ func (worker *worker) State() WorkerState { return worker.s
func (worker *worker) GardenAddr() *string { return worker.gardenAddr }
func (worker *worker) CertsPath() *string { return worker.certsPath }
func (worker *worker) BaggageclaimURL() *string { return worker.baggageclaimURL }
func (worker *worker) ReaperAddr() *string { return worker.reaperAddr }
func (worker *worker) HTTPProxyURL() string { return worker.httpProxyURL }
func (worker *worker) HTTPSProxyURL() string { return worker.httpsProxyURL }
func (worker *worker) NoProxy() string { return worker.noProxy }
Expand Down

0 comments on commit bd7423f

Please sign in to comment.