From 2b99e148d9bfb8a2a1fd54ab92a98eea8f160316 Mon Sep 17 00:00:00 2001 From: wang yan Date: Sun, 28 Apr 2019 18:16:54 +0800 Subject: [PATCH] Add gc parameters when to update gc schedule Signed-off-by: wang yan --- src/core/api/reg_gc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/api/reg_gc.go b/src/core/api/reg_gc.go index d5712c6e7..031d7249d 100644 --- a/src/core/api/reg_gc.go +++ b/src/core/api/reg_gc.go @@ -87,6 +87,9 @@ func (gc *GCAPI) Put() { return } ajr.Name = common_job.ImageGC + ajr.Parameters = map[string]interface{}{ + "redis_url_reg": os.Getenv("_REDIS_URL_REG"), + } gc.updateSchedule(ajr) }