Closed WalkerWang731 closed 2 years ago
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.
It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
Welcome @WalkerWang731!
It looks like this is your first PR to kubernetes-client/python-base 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.
You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.
You can also check if kubernetes-client/python-base has its own contribution guidelines.
You may want to refer to our testing guide if you run into trouble with your tests not passing.
If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!
Thank you, and welcome to Kubernetes. :smiley:
I signed it
/lgtm /approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: WalkerWang731, yliaog
The full list of commands accepted by this bot can be found here.
The pull request process is described here
Signed-off-by: WalkerWang731 wxy1990731@hotmail.com
What type of PR is this?
feature
What this PR does / why we need it:
It same as
load_kube_config_from_dict
but returns an ApiClient to be used with any API object. This will allow the caller to concurrently talk with multiple clusters.Which issue(s) this PR fixes:
Fixes #265
Special notes for your reviewer:
unittest result:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
Background
Add a new method that user can get an
ApiClient
object directly.it same as
load_kube_config_from_dict
but returns an ApiClient to be used with any API object. This will allow the caller to concurrently talk with multiple clusters.How to use