-
Notifications
You must be signed in to change notification settings - Fork 26
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
Instance creation and configuration api should be refactored #121
Comments
Also: Do we actually need the |
Trying to think how it should work.
|
Some points to remember About
See also notes on ManageIQ/kubeclient#393 |
Perhaps the authentication modules should be implemented as some sort of http client library middleware things. |
Also, adding to #121 (comment)
|
Oddities / annoyances:
K8s:Client.new
should probably not require transport as an argument.K8s::Client.config
takes a config and passes it toTransport.config
. I think it's a misleading method name.K8s::Transport.config
same as above, returns an instance ofK8s::Transport
, I would expect it to return a config instead of accepting one.Transport.new
takes auth token/username/password, but there'sK8s::Config::UserAuthProvider
, maybeTransport.new
should actually take an instance of some kind ofAuthentication
classTransport
is a mixture of abstraction for Excon and generic methods.!
methods such asapi_groups!
andapi_resources!
are unintuitive. Perhapsapi_groups(force_refresh: true)
or something would be better.Method visibility in general has been ignored completely, there are no private methods.(I didn't find any methods that should be private except maybe the Util mixin should usemodule_function
)K8s::Resource.from_files
reads a single file or all files in a directory. I would expect it to take an array of paths or IOs.Other than that, it's actually pretty great.
The text was updated successfully, but these errors were encountered: