-
Notifications
You must be signed in to change notification settings - Fork 993
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
Sync unrebased codes #113
Sync unrebased codes #113
Conversation
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Updated Job API.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Add Trivas img.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added lifecycle policy framework.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Replaced condition by state.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added Job input/output.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added Job error handling.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added Pod events.
Correct typos.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added suspend/resume.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Job management perf enhancement.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Replaced godep with dep
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Use scheduler name from Job.
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Set default template name.
Updated README.
Add TF example
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Added Queue design doc.
Makefile Cleanup.
Update kube batch source
pkg/apis/helpers/helpers.go
Outdated
if _, err := kubeClients.CoreV1().ConfigMaps(job.Namespace).Create(cm); err != nil { | ||
glog.V(3).Infof("Failed to create ConfigMap for Job <%s/%s>: %v", | ||
cmOld.Data = data | ||
if _, err := kubeClients.CoreV1().ConfigMaps(job.Namespace).Update(cmOld); err != nil { |
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.
Is there a case we need to update configmap?
@@ -128,24 +140,23 @@ func NewJobController(config *rest.Config) *Controller { | |||
cc.cmdLister = cc.cmdInformer.Lister() | |||
cc.cmdSynced = cc.cmdInformer.Informer().HasSynced | |||
|
|||
cc.sharedInformers = informers.NewSharedInformerFactory(cc.kubeClients, 0) |
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.
definitely this code is more clean
go cc.cmdInformer.Informer().Run(stopCh) | ||
go cc.sharedInformers.Start(stopCh) | ||
go cc.pcInformer.Informer().Run(stopCh) |
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.
The old cc.sharedInformers.Start(stopCh)
is same as these lines.
let's only do code sync up in this PR; we can open other PRs to address comments. |
…cano into feature/move_codes
@k82cn There are some fundamental issues in master branch of CodeClud repo which lead the half failing of our testcases, for example, the pending state does not exist anymore, needs a fix before sync. |
let's make sure code sync up firstly. We can fix the issues in different PRs. |
Signed-off-by: Da K. Ma <klaus1982.cn@gmail.com>
Updated kube-batch to vk-kube-batch.
Changes are below:
NOTE: It's depends on the feature in kube-batch, should not be merged before that
The synced codes has not been tested, the e2e testcases would fail due to this.
For #112