Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

need support load_kube_config_data() #1213

Closed
onecer opened this issue Jul 24, 2020 · 6 comments
Closed

need support load_kube_config_data() #1213

onecer opened this issue Jul 24, 2020 · 6 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@onecer
Copy link
Contributor

onecer commented Jul 24, 2020

What is the feature and why do you need it:

I creating a simply k8s tools to mange that for my customers. They have diffrence cluster.

I want to store kubeconfig in mysql, manage mutilple k8s cluster.

from now just have two way too create a client.

  • load_kube_config(). -- load kubeconfig fron file
  • client.Configuration() -- use token

I think that kubeconfig is easy to config. Its friendly for my users.

here is my program process steps.

  1. read kubeconfig from mysql
  2. store it to disk /tmp/xxx.
  3. load_kube_config(/tmp/xxx)

Describe the solution you'd like to see:

support set kubeconfig from strings. like load_kube_config_data(data='kubeconfig data')

@onecer onecer added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 24, 2020
@ConscriptMR
Copy link

well not from strings but from JSONs maybe would be more practical

@roycaihw
Copy link
Member

roycaihw commented Aug 7, 2020

Loading kubeconfig from dict support was added recently: kubernetes-client/python-base#195. You can load JSON blob into dict and load kubeconfig from there

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 5, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 5, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants