-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some minor cleanup and optmization #57
Conversation
LGTM overall, let's get it merged when CI is happy :) |
Sorry, forget to set gofmt |
pkg/controllers/job/cache/cache.go
Outdated
func (jc *jobCache) processCleanupJob() { | ||
func (jc *jobCache) worker() { | ||
for jc.processCleanupJob() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the empty line
"github.com/golang/glog" | ||
"sync" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move sync close to fmt.
merge the three commits into one. |
done |
【Issue volcano-sh#57】【BUG2019040101375 】【BUG2019032102153 】增加policy中action和events的校验,去掉RestartTask action 单号: BUG2019040101375; BUG2019032102153 特性/模块名称: volcano-admission 修改原因: 1. policy中RestartTask action配置后不生效 2. policy中action和event缺少校验 修改内容: 1. RestartTask未被state实现,去掉这个action 2. 增加policy中可配置action和event的校验,action的可取值为"AbortJob","RestartJob","TerminateJob","CompleteJob","ResumeJob" events的可取值为"*","PodFailed","PodEvicted","Unknown",“TaskCompleted” 自验情况 自验通过 验证yaml [policy.yaml](/uploads/2d684ceab9b5a399571c4aff233e790b/policy.yaml) 验证结果 ![image](/uploads/13973e45fd75d45b611791fd039488be/image.png) ![image](/uploads/d0b9cb5e7a501dc87d53f78a4ac29477/image.png) Issues info: Issue ID: 57 Title: 【BUG2019040101375 】restartTask不生效【BUG2019032102153 】envents/action组合不合理 Issue url: CBU-PaaS/Community/volcano/volcano#57 See merge request CBU-PaaS/Community/volcano/volcano!92
remove some unnecessary fields in controller
reduce the depend on wait.until to call handler func for each item, which requires more cost.