Skip to content

Commit

Permalink
Fix k8s clients docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Jan 26, 2024
1 parent 3833fdd commit 36e33fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spark_on_k8s/k8s/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def client(self) -> k8s.ApiClient:
Examples:
>>> import asyncio
>>> from spark_on_k8s.api.kubernetes_async_client import KubernetesAsyncClientManager
>>> from spark_on_k8s.k8s.async_client import KubernetesAsyncClientManager
>>> async def get_namespaces():
>>> async with KubernetesAsyncClientManager().client() as async_client:
... api = k8s.CoreV1Api(async_client)
Expand Down
2 changes: 1 addition & 1 deletion spark_on_k8s/k8s/sync_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def client(self) -> k8s.ApiClient:
"""Create a Kubernetes client in a context manager.
Examples:
>>> from spark_on_k8s.kubernetes_client import KubernetesClientManager
>>> from spark_on_k8s.k8s.sync_client import KubernetesClientManager
>>> with KubernetesClientManager().client() as client:
... api = k8s.CoreV1Api(client)
... namespaces = [ns.metadata.name for ns in api.list_namespace().items]
Expand Down

0 comments on commit 36e33fa

Please sign in to comment.