-
Notifications
You must be signed in to change notification settings - Fork 741
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
Remove duplicated imports for pkg/apis/kubeflow.org/v1 #1847
Remove duplicated imports for pkg/apis/kubeflow.org/v1 #1847
Conversation
cefdbf9
to
6baf6e3
Compare
kubeflowv1 "github.com/kubeflow/training-operator/pkg/apis/kubeflow.org/v1" | ||
trainingoperatorcommon "github.com/kubeflow/training-operator/pkg/common" | ||
"github.com/kubeflow/training-operator/pkg/common/util" | ||
"github.com/kubeflow/training-operator/pkg/controller.v1/common" | ||
"github.com/kubeflow/training-operator/pkg/controller.v1/control" | ||
"github.com/kubeflow/training-operator/pkg/controller.v1/expectation" | ||
commonutil "github.com/kubeflow/training-operator/pkg/util" | ||
train_util "github.com/kubeflow/training-operator/pkg/util/train" | ||
trainutil "github.com/kubeflow/training-operator/pkg/util/train" |
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.
We shouldn't use snake case for Golang.
Pull Request Test Coverage Report for Build 5451231793
💛 - Coveralls |
6baf6e3
to
937071e
Compare
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
937071e
to
bb3c660
Compare
@@ -89,25 +88,24 @@ const ( | |||
) | |||
|
|||
// initializeMPIJobStatuses initializes the ReplicaStatuses for MPIJob. | |||
func initializeMPIJobStatuses(mpiJob *kubeflowv1.MPIJob, mtype commonv1.ReplicaType) { | |||
replicaType := commonv1.ReplicaType(mtype) |
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.
This is redundant type casting.
|
/assign @johnugeorge @terrytangyuan |
Thanks @tenzen-y |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johnugeorge, tenzen-y 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 |
What this PR does / why we need it:
I removed duplicated imports for "github.com/kubeflow/training-operator/pkg/apis/kubeflow.org/v1".
commonv1
vskubeflowv1
.Also, I removed redundant type casting for
kubeflowv1.ReplicaType
.Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #1816
Checklist: