Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
examples of using the from_file defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Mar 3, 2019
1 parent 046f118 commit 6b44066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Check server version:

.. code:: python
api = pykube.HTTPClient(pykube.KubeConfig.from_file("~/.kube/config"))
api = pykube.HTTPClient(pykube.KubeConfig.from_file())
api.version
Expand All @@ -171,7 +171,7 @@ You can run pykube against your current kubeconfig context, e.g. local Minikube_
$ pipenv install --dev
$ pipenv run python3
>>> import pykube
>>> config = pykube.KubeConfig.from_file('~/.kube/config')
>>> config = pykube.KubeConfig.from_file()
>>> api = pykube.HTTPClient(config)
>>> list(pykube.Deployment.objects(api))
Expand Down

0 comments on commit 6b44066

Please sign in to comment.