-
Notifications
You must be signed in to change notification settings - Fork 2k
[Umbrella Issue] Java SDK utility tooling improvement plan #523
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
Comments
This comment has been minimized.
This comment has been minimized.
This generally looks good, but I don't think the RESTMapper stuff is needed/useful? (and in general I think the RESTMapper stuff in the go client is pretty badly designed anyway, so let's look at the use cases, not just translating go client concepts to Java) Also, I think that we should consider moving some of this into a different library/directory. I'd like to ensure we have both a "simple" and an "advanced" client experience, which I think client-go didn't do very well... |
what about a new java module under the root named
yeah, agree that we should list "provide better libraries than client-go" as a goal in the picture, especially making use of generic types. |
That sounds good, how about |
@brendandburns <https://github.com/brendandburns> @yue9944882
<https://github.com/yue9944882>
will it be okay, if i take a shot at Leader election utilities.
A starting point would be of great help.
is this similar to
https://kubernetes.io/blog/2016/01/simple-leader-election-with-kubernetes/
…On Fri, Mar 8, 2019 at 11:36 AM Brendan Burns ***@***.***> wrote:
That sounds good, how about client-java-extended? or client-java-enhanced?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#523 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAJioywYAa_OJHrYVgdHXHDffECMXZ7ks5vUf3UgaJpZM4bihto>
.
--
Thanks,
* |< ∧ ɤ |_ || I |< *
|
thank you so much for helping w/ this. matter of fact, we already got an existing utility package for leader-electing from our internal project and it's ready to be turn'd into a pull soon. i don't really mind a duplicate of the work but how do you think about getting on with the |
@yue9944882 yup i will take up pagination. V1PodList io.kubernetes.client.apis.CoreV1Api.listNamespacedPod(String namespace,
Boolean includeUninitialized, String pretty, String _continue,
String fieldSelector, String labelSelector, Integer limit,
String resourceVersion, Integer timeoutSeconds,
Boolean watch) on type of such calls, do we want Pagination functionality on top of it ? |
@kondapally1989 I would write an interface that is something like: Iterator<T> listNamespacedWithPaging<T>(List<T> listFn(...), int pageSize) {
....
} Basically, you want to transform one large list call into a series of small paginated list calls, and feed those items out as an iterator. It's actually going to be tricky to do it right, because we don't have good base classes for everything so you will probably need to use reflection, or craft the right interface. Hope that helps, let me know if there is additional questions. |
yes. we're actually performing pagination over those list calls over |
i'm slightly leaning on the latter one. sort of similar to CallGeneratorParams.java. |
/cc @wu8685 for the leader-election |
SMP Patch client utilities-- |
@kondapally1989 oh this bug, sure we can start by fixing this as the first step. (btw in our internal fork, we workaround'd by hacking the parameter list of patch method to allow users to specify patch type, which i suppose is unacceptable in the community version?) while the item in this issue is about a utility library which helps dynamically construct patch body instead of formatting. sth like:
btw server-side apply is landing k/k in 1.14, that would be a fine replacement for SMP in the future. but am not sure how will that feature work w/ openapi doc :P |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Uh oh!
There was an error while loading. Please reload this page.
/cc @brendandburns
/help-wanted
Bringing more use helpful utilities to k-client/java will help polyglot kubernetes developers to extend more projects, operators in the open source world.
Listing a few items we might get start w/ in the foreseeable future:
configmap
apiendpoints
apicoordination
apiRESTMapper for resolving response from discovery API@kondapally1989: another related bug in ExtensionsV1beta1Api.patchNamespacedDeployment throws 500 Internal server error because of wrong content type in header #127 should be solvedFixes patch format to support various patch formats #544The text was updated successfully, but these errors were encountered: