Skip to content

Commit

Permalink
Fixes KubernetesClusterConfig import in prefect-kubernetes (#14154)
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle authored Jun 19, 2024
1 parent 09a459f commit e42d112
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/integrations/prefect-kubernetes/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ if __name__ == "__main__":

```python
# with minikube / docker desktop & a valid ~/.kube/config this should ~just work~
from prefect.blocks.kubernetes import KubernetesClusterConfig
from prefect_kubernetes.credentials import KubernetesCredentials
from prefect_kubernetes.credentials import KubernetesCredentials, KubernetesClusterConfig

k8s_config = KubernetesClusterConfig.from_file('~/.kube/config')

Expand Down
3 changes: 1 addition & 2 deletions src/integrations/prefect-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ if __name__ == "__main__":

```python
# with minikube / docker desktop & a valid ~/.kube/config this should ~just work~
from prefect.blocks.kubernetes import KubernetesClusterConfig
from prefect_kubernetes.credentials import KubernetesCredentials
from prefect_kubernetes.credentials import KubernetesCredentials, KubernetesClusterConfig

k8s_config = KubernetesClusterConfig.from_file('~/.kube/config')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
from typing_extensions import Literal, Self

import prefect
from prefect.blocks.kubernetes import KubernetesClusterConfig
from prefect.exceptions import (
InfrastructureError,
InfrastructureNotAvailable,
Expand All @@ -140,6 +139,7 @@
BaseWorker,
BaseWorkerResult,
)
from prefect_kubernetes.credentials import KubernetesClusterConfig
from prefect_kubernetes.events import KubernetesEventsReplicator
from prefect_kubernetes.utilities import (
_slugify_label_key,
Expand Down

0 comments on commit e42d112

Please sign in to comment.