Skip to content
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

fix error in types and cancel dir pkg under dir go #587

Merged
merged 6 commits into from
Feb 8, 2018

Conversation

m3ngyang
Copy link
Member

@m3ngyang m3ngyang commented Feb 5, 2018

This is a sub pr of pr #565
reorganize the structure of project.

Image string `json:"image,omitempty"`
Image string `json:"image,omitempty"`
// If you want to use the hostnetwork instead of container network
// portmanager is necessary.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have a link to introduce the portmanager? The user may not know what's a portmanager is.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Yancey1989 ok, let me add a link

typhoonzero
typhoonzero previously approved these changes Feb 5, 2018
Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -31,7 +31,7 @@ echo ${CODEGEN_PKG}
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
github.com/PaddlePaddle/cloud/go/pkg/client github.com/PaddlePaddle/cloud/go/pkg/apis \
github.com/PaddlePaddle/cloud/go/client github.com/PaddlePaddle/cloud/go/apis \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see no go/pkg/client directory in current develop branch, is this really needed? Or can you add this when the package is committed.

Copy link
Member Author

Choose a reason for hiding this comment

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

@typhoonzero dir client will be generated for go test

Copy link
Member Author

Choose a reason for hiding this comment

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

And I think it is strange only to change pkg/apis.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see, is generate-groups.sh "deepcopy,client,informer,lister" generating the template code for later development?

Copy link
Member Author

@m3ngyang m3ngyang Feb 5, 2018

Choose a reason for hiding this comment

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

Yes, if the structs of types change, the tools (client, deepcopy and so on) need to be re-generated.

Yancey1989
Yancey1989 previously approved these changes Feb 5, 2018
Copy link
Collaborator

@Yancey1989 Yancey1989 left a comment

Choose a reason for hiding this comment

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

LGTM++

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM

@typhoonzero typhoonzero merged commit a714199 into PaddlePaddle:develop Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants