-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Umbrella Issue: Code Quality Improvements #528
Comments
@BenTheElder should we add some e2e smoke tests for features like the load balancer and port mapping? |
@aojea IE HA mode? Eventually yes, but lower priority, to my knowledge nothing depends on that yet. (And shouldn't!) We also should have smoke tests with the default image. |
I might help with the two last points :) |
command -v is a shell builtin, this change is recommended by shellcheck. This updates kubernetes-sigs#528
This bug was found with shellcheck. This updates kubernetes-sigs#528
another one for the list potentially? |
Is it possible to avoid the dependency with docker binary by vendoring the client library and making the calls directly to the API instead of executing them through exec? |
Good question. It's pretty wildly unusual to have a docker daemon running but no docker client binary so we're not trying to avoid depending on the binary, however we are trying to let kind work with other runtimes (podman). (Also the docker client library |
Sounds reasonable but there could be a common use case where you are
running kind inside a container that has access to a docker daemon for CI
purposes.
Just putting my 2 cents.
Great job by the way 👍🏻
…On Thu, 6 Jun 2019 at 18:22, Benjamin Elder ***@***.***> wrote:
Good question.
It's pretty wildly unusual to have a docker daemon running but no docker
client binary so we're not trying to avoid depending on the binary, however
we are trying to let kind work with other runtimes (podman).
(Also the docker client library
is pretty terrible, kubelet is littered with comments about trying to
figure out how to use it correctly. Users will have a much better time
debugging when they can see the CLI calls by adjusting the log level)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#528?email_source=notifications&email_token=AARA7FW4YEPWA7GTUIN2U2DPZE2SXA5CNFSM4HM6VDEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXDMUQY#issuecomment-499567171>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARA7FWY3EU4QDFSC75AOL3PZE2SXANCNFSM4HM6VDEA>
.
|
Small update: we've added golangci-lint with a number of extra linters enabled across the repo and fixed ~all of the failures. |
we're mostly decoupled from docker, and span up some more effort on testing, including collecting coverage data and soon e2e coverage too. |
factoring out docker into a provider and node interface is 100% done for cluster operations. image building I don't think we want to tackle for now, I'd rather only maintain one build, but we can see if s/docker/$tool/ works for any tools implementing the same build command maybe.. we definitely want more unit tests, and are going to collect e2e test coverage, but we do have a lot more unit tests now and are working to improve coverage of stable behaviors (like kubeconfig management). |
https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-kind-unit/1190267720940130305 We're up to 22% of statements and 31% of files. Ordinarily I'd be very unhappy with that, but the other code is mostly things like creating the nodes with docker exec, which we e2e test extensively. I have a WIP PR to collect the e2e coverage of kind, we can diff when that's in and fill the gaps. This code still has other quality improvements to come, but the ones in the initial comment are in much better shape. |
* Add upgrade 0.4 documentation * Update stratio-docs/en/modules/operations-manual/pages/operations-manual.adoc Co-authored-by: Teresa Pérez Senso <[email protected]> * Apply suggestions from code review Co-authored-by: Teresa Pérez Senso <[email protected]> --------- Co-authored-by: stg <[email protected]> Co-authored-by: Teresa Pérez Senso <[email protected]>
What should be cleaned up or changed:
Why is this needed:
To ensure kind's code improves in quality and stays that way.
/priority important-longterm
/assign
Will work on this more after the 0.3 release. Plan to go ahead and get some smaller pieces in while some tests soak.
The text was updated successfully, but these errors were encountered: