-
Notifications
You must be signed in to change notification settings - Fork 706
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
add expectation-related functions for other resources used in mpi-controller #1484
Conversation
cbf5984
to
1430ea6
Compare
Pull Request Test Coverage Report for Build 1581041831
💛 - Coveralls |
Hi @Jeffwan and @terrytangyuan , this pull request mainly focus on the I understand the importance of expectation for controllers when implemented without controller-runtime. With the training-operator fully built on kubebuilder, do we still need expectation related logic? This question amplifies with mpi-controller.v1 because unlike other controllers, mpi-controller.v1 utilizes and watches Kubernetes resources besides Pod and Service, making the existing expectation functions insufficient to deal with. While I made some generic expectation functions in this pull request, I'm also thinking if they are redundant. WDYT? |
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.
LGTM in general. Just a couple of minor grammatical suggestions. Could you also update the PR title and description to reflect the changes?
commonv1 "github.com/kubeflow/common/pkg/apis/common/v1" | ||
"github.com/kubeflow/common/pkg/controller.v1/common" |
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.
Are we not checking the import order in the CI? If not, we should probably add.
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.
I think not. The imports are formatted by goimports
, which seems not good enough in this case. Just opened a new issue to track this.
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan Tang <terrytangyuan@gmail.com>
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.
Thanks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: terrytangyuan, zw0610 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 |
fix issues related to controller logic from comment #1457 (review)