Skip to content

Commit

Permalink
[core][autoscaler] remove nonexistent kubernetes provider (#50650)
Browse files Browse the repository at this point in the history
## Checks

- [x] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [x] I've run `scripts/format.sh` to lint the changes in this PR.
- [x] I've included any doc changes needed for
https://docs.ray.io/en/master/.
- [x] I've added any new APIs to the API Reference. For example, if I
added a
method in Tune, I've added it in `doc/source/tune/api/` under the
           corresponding `.rst` file.
- [x] I've made sure the tests are passing. Note that there might be a
few flaky tests, see the recent failures at https://flakey-tests.ray.io/
- Testing Strategy
   - [x] Unit tests
   - [ ] Release tests
   - [ ] This PR is not tested :(

Signed-off-by: David Xia <[email protected]>
  • Loading branch information
davidxia authored Feb 17, 2025
1 parent 69ded2b commit 051b968
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions python/ray/autoscaler/_private/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ def _import_fake_multinode_docker(provider_config):
return FakeMultiNodeDockerProvider


def _import_kubernetes(provider_config):
from ray.autoscaler._private._kubernetes.node_provider import KubernetesNodeProvider

return KubernetesNodeProvider


def _import_kuberay(provider_config):
from ray.autoscaler._private.kuberay.node_provider import KubeRayNodeProvider

Expand Down Expand Up @@ -152,12 +146,6 @@ def _load_local_defaults_config():
return os.path.join(os.path.dirname(ray_local.__file__), "defaults.yaml")


def _load_kubernetes_defaults_config():
import ray.autoscaler.kubernetes as ray_kubernetes

return os.path.join(os.path.dirname(ray_kubernetes.__file__), "defaults.yaml")


def _load_aws_defaults_config():
import ray.autoscaler.aws as ray_aws

Expand Down Expand Up @@ -202,7 +190,6 @@ def _import_external(provider_config):
"gcp": _import_gcp,
"vsphere": _import_vsphere,
"azure": _import_azure,
"kubernetes": _import_kubernetes,
"kuberay": _import_kuberay,
"aliyun": _import_aliyun,
"external": _import_external, # Import an external module
Expand Down Expand Up @@ -232,7 +219,6 @@ def _import_external(provider_config):
"gcp": _load_gcp_defaults_config,
"azure": _load_azure_defaults_config,
"aliyun": _load_aliyun_defaults_config,
"kubernetes": _load_kubernetes_defaults_config,
"vsphere": _load_vsphere_defaults_config,
"readonly": _load_read_only_defaults_config,
}
Expand Down

0 comments on commit 051b968

Please sign in to comment.