Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Initial code push #11

Merged
merged 7 commits into from
Jun 14, 2018
Merged

Conversation

everpeace
Copy link
Contributor

This is my initial implementation of chainer-operator. My proposal is here

  • support non-distributed/distributed chainer jobs
  • support heterogeneous worker sets. see example/chainer-reference.yaml.
    • this is an enhancement from my original proposal
  • paved simple documents/examples.

Notes:

@rongou @gaocegege @jlewi Would you mind if I asked you to be reviewers?? If you don't mind, I would like to add you guys to OWNERS file as reviewers. I will also seek volunteer reviewers in slack channel too like rongou did before.

@gaocegege
Copy link
Member

Thanks for your invitation. I am glad to help you to review the code.

Copy link
Member

@gaocegege gaocegege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM while request @rongou 's review.

@@ -0,0 +1,13 @@
required = ["k8s.io/code-generator/cmd/client-gen"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if we only use client-gen. Then how about defaulter-gen/informer-gen and so on?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@everpeace everpeace Jun 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. "k8s.io/code-generator/cmd/client-gen" comes with deepcopy/client/defaulter/lister/informer-gen.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then LGTM

- chjobs
categories:
- all

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the blanks.

slots = Int32(int32(q.Value()))
}
spec.MPIConfig = defaultMPIConfig(slots)
glog.V(4).Infof("setting spec.WorkerSets[%+v].MPIConfig.Slots to %+v", name, *spec.MPIConfig.Slots)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we prefer logrus because of structured logging. But we could update it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, ok. I will do it later. I opened an issue on it #14

// Kubernetes API.
recorder record.EventRecorder

backends map[apisv1alpha1.BackendType]backends.Backend
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I do not recommend maintaining such a cache in memory, and k8s community also does not recommend. It will be better to be event-driven. While LGTM since this is the first commit. We could merge it and go ahead iteratively.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! I will. I opened the issue on it #13

@gaocegege
Copy link
Member

/lgtm

@everpeace Feel free to approve your PR and the tide will help you to merge it.

Thanks for your contribution!

@everpeace
Copy link
Contributor Author

Thanks! I'll approve this PR.

/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: everpeace

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 7fb2936 into kubeflow:master Jun 14, 2018
@everpeace everpeace deleted the initial-version branch June 14, 2018 13:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants