-
Notifications
You must be signed in to change notification settings - Fork 39
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
Is configuration global? #19
Comments
Followup question: docs don't explain what's the purpose of separate
Let's see, if we have several clusters and want to talk to several api groups in each.
actually sounds like path of least resistance... |
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. |
To answer myself:
|
Looking at
Kubernetes.configure
orKubernetes.load_kube_config
examples in the docs, it seems configuration is global for the gem.And then one can do parameter-less
api = Kubernetes::CoreV1Api.new; api.list_pod_for_all_namespaces
.This is convenient for common case, but does it preclude connecting to several clusters at same time with different auth?
Hmm, it seems
CoreV1Api.new
etc can take anApiClient
instance. And you can produceApiClient
from aConfiguration
:https://github.com/kubernetes-client/ruby/blob/7f268172b/kubernetes/lib/kubernetes/utils.rb#L47
needs more docs...
The text was updated successfully, but these errors were encountered: