mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
Merge pull request #7584 from wy65701436/fix-gc-schedule
Add gc parameters when to update gc schedule
This commit is contained in:
commit
17aaa95c4a
@ -87,6 +87,9 @@ func (gc *GCAPI) Put() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
ajr.Name = common_job.ImageGC
|
ajr.Name = common_job.ImageGC
|
||||||
|
ajr.Parameters = map[string]interface{}{
|
||||||
|
"redis_url_reg": os.Getenv("_REDIS_URL_REG"),
|
||||||
|
}
|
||||||
gc.updateSchedule(ajr)
|
gc.updateSchedule(ajr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user