Skip to content

Commit 30c22a5

Browse files
Remove classic KubeCluster and HelmCluster (#890)
* Remove classic KubeCluster and HelmCluster * Be less specific in testing config * Remove deprecation warning test * Shift docs focus a little * Refactor docs a little more * Reinstate code example * doc -> docs
1 parent ef41984 commit 30c22a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+232
-4943
lines changed

.github/workflows/helmcluster.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/kubecluster.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/operator.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,7 @@
11
name: "Operator"
22
on:
33
pull_request:
4-
paths:
5-
- ".github/workflows/operator.yaml"
6-
- "requirements*"
7-
- "ci/**"
8-
- "dask_kubernetes/operator/**"
9-
- "dask_kubernetes/common/**"
10-
- "dask_kubernetes/*"
114
push:
12-
paths:
13-
- ".github/workflows/operator.yaml"
14-
- "requirements*"
15-
- "ci/**"
16-
- "dask_kubernetes/operator/**"
17-
- "dask_kubernetes/common/**"
18-
- "dask_kubernetes/*"
195

206
concurrency:
217
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -64,7 +50,7 @@ jobs:
6450
KUBERNETES_VERSION: ${{ matrix.kubernetes-version }}
6551
TEST_ISTIO: "true"
6652
TEST_DASK_GATEWAY: "true"
67-
run: pytest --maxfail=3 --reruns=5 dask_kubernetes/common dask_kubernetes/operator
53+
run: pytest --maxfail=3 --reruns=5 dask_kubernetes
6854
- name: Debug kubernetes resources
6955
if: always()
7056
run: kubectl get all -A

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ instance/
7373
.scrapy
7474

7575
# Sphinx documentation
76-
doc/_build/
76+
docs/_build/
7777

7878
# PyBuilder
7979
target/

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
sphinx:
10-
configuration: doc/source/conf.py
10+
configuration: docs/source/conf.py
1111

1212
formats: all
1313

@@ -20,7 +20,7 @@ python:
2020
install:
2121
- method: pip
2222
path: .
23-
- requirements: doc/requirements-docs.txt
23+
- requirements: docs/requirements-docs.txt
2424

2525
submodules:
2626
include: all

dask_kubernetes/__init__.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,10 @@
1-
from importlib import import_module
2-
from warnings import warn
3-
41
from . import config
52

6-
from .common.auth import (
7-
AutoRefreshConfiguration,
8-
AutoRefreshKubeConfigLoader,
9-
ClusterAuth,
10-
InCluster,
11-
KubeAuth,
12-
KubeConfig,
13-
)
14-
from .common.objects import clean_pod_template, make_pod_from_dict, make_pod_spec
15-
from .helm import HelmCluster
16-
17-
__all__ = ["HelmCluster", "KubeCluster"]
3+
__all__ = []
184

195
try:
206
from ._version import version as __version__ # noqa
217
from ._version import version_tuple as __version_tuple__ # noqa
228
except ImportError:
239
__version__ = "0.0.0"
2410
__version_tuple__ = (0, 0, 0)
25-
26-
27-
def __getattr__(name):
28-
if name == "KubeCluster":
29-
new_module = import_module("dask_kubernetes.classic")
30-
return getattr(new_module, name)
31-
32-
raise AttributeError(f"module {__name__} has no attribute {name}")

dask_kubernetes/classic/__init__.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)