-
Notifications
You must be signed in to change notification settings - Fork 56
Merging hand-written code into one package #33
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
Conversation
@jkachmar @jonschoning PTAL |
Two comments:
With this naming scheme, all of the hand-written functions are under the I haven't given this too much thought though, so there might be good reasons not to do it this way.
|
Yeah I'll make these changes. |
PTAL |
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.
Looks awesome, thanks very much!
@brendandburns can you approve? Thanks! |
kubernetes-openapi-client/README.md
Outdated
|
||
import Data.Function ((&)) | ||
import qualified Kubernetes.OpenAPI.API.CoreV1 | ||
import Kubernetes.OpenAPI.Client (dispatchMime) |
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.
@guoshimin I don't think the README example here reflects the lates module name changes.
@guoshimin @jkachmar The way I usually approach module naming in this situation is to have "Kubernetes.Client." but then re-export whatever I need to "Kubernetes.Client" that way a user of the library only needs to do "import Kubernetes.Client" and they're set to go. Hoever, a more experienced user is free to pick and choose and import stuff from "Kubernetes.Client." one by one (for whatever reason). I don't have an opinion on the names in "Kubernetes.Client.*" as long as the re-export in "Kubernetes.Client" give me as a user all I need. Does this make sense? |
One more question/suggestion regarding the package names: Isn't it a little too much to name the 2 packages kubernetes-openapi-client-gen and kubernetes-openapi-client? Seems a bit of a mouthful. Wouldn't it make more sense to give them shorter (memorable names) like EDIT: Just to be clear this doesn't impact this PR it's just a suggestion. If however you would like to eventually make this change I have some free time this weekend and would be able to work on it. |
@denibertovic Thanks for the feedback! PTAL. |
@guoshimin LGTM now. Do you have any feedback on the package names in my second comment (for another PR of course). |
Oops, missed your second comment. @jonschoning first raised the point whether it was wise to take the name |
@guoshimin why would it not be wise to use the name "kubernetes" if it's the official api bindings? Please point me to a discussion about this so you don't have to repeat yourself. That said, I'm 👎 on the single package proposal. Having 2 packages seems perfectly reasonable and quite in spirit for these types of things in the ecosystem. FWIW, if the "qualified" name must stay I would vote for keeping the |
|
|
Thank you folks for your input. I'll change the package name to |
PTAL |
kubernetes-client/package.yaml
Outdated
name: kubernetes-client | ||
version: 0.1.0.0 | ||
description: | | ||
This package contains functions for working with kubeconfig files. |
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 description should get updated.
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.
Good catch. Done. And added a few more fields.
kubernetes-client/package.yaml
Outdated
- x509-system | ||
- x509-store | ||
- x509-validation | ||
executables: |
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 don't think when installing kubernetes-client
that I should have to build this example binary.
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.
Moved to test.
kubernetes/README.md
Outdated
@@ -8,4 +8,4 @@ OpenAPI-Specification: https://github.com/OAI/OpenAPI-Specification/blob/master/ | |||
|
|||
## Usage | |||
|
|||
Please refer to the README of the `kubernetes-client-helper` package. | |||
Please refer to the README of the `kubernetes-openapi-client` package. |
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.
s/kubernetes-openapi-client/kubernetes-client/
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.
Done.
- data-default-class | ||
- http-client >=0.5 && <0.6 | ||
- http-client-tls | ||
- kubernetes-openapi-client-gen == 0.1.0.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.
This should change to kubernetes-client-core right?
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 will update it when I regen the code to use the new package name.
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. 👍 |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, guoshimin 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 |
No description provided.