Skip to content

Commit 62be50e

Browse files
Updated ray v1alpha1 to v1
1 parent e7d5255 commit 62be50e

File tree

13 files changed

+26
-26
lines changed

13 files changed

+26
-26
lines changed

demo-notebooks/guided-demos/notebook-ex-outputs/gptfttest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
memory: 8G
3030
nvidia.com/gpu: 1
3131
generictemplate:
32-
apiVersion: ray.io/v1alpha1
32+
apiVersion: ray.io/v1
3333
kind: RayCluster
3434
metadata:
3535
labels:

demo-notebooks/guided-demos/notebook-ex-outputs/instascaletest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
memory: 8G
3030
nvidia.com/gpu: 1
3131
generictemplate:
32-
apiVersion: ray.io/v1alpha1
32+
apiVersion: ray.io/v1
3333
kind: RayCluster
3434
metadata:
3535
labels:

demo-notebooks/guided-demos/notebook-ex-outputs/interactivetest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
memory: 8G
3030
nvidia.com/gpu: 1
3131
generictemplate:
32-
apiVersion: ray.io/v1alpha1
32+
apiVersion: ray.io/v1
3333
kind: RayCluster
3434
metadata:
3535
labels:

demo-notebooks/guided-demos/notebook-ex-outputs/jobtest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
memory: 4G
2828
nvidia.com/gpu: 0
2929
generictemplate:
30-
apiVersion: ray.io/v1alpha1
30+
apiVersion: ray.io/v1
3131
kind: RayCluster
3232
metadata:
3333
labels:

demo-notebooks/guided-demos/notebook-ex-outputs/raytest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
memory: 4G
2828
nvidia.com/gpu: 0
2929
generictemplate:
30-
apiVersion: ray.io/v1alpha1
30+
apiVersion: ray.io/v1
3131
kind: RayCluster
3232
metadata:
3333
labels:

src/codeflare_sdk/cluster/cluster.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def _component_resources_up(
557557
if resource["kind"] == "RayCluster":
558558
api_instance.create_namespaced_custom_object(
559559
group="ray.io",
560-
version="v1alpha1",
560+
version="v1",
561561
namespace=namespace,
562562
plural="rayclusters",
563563
body=resource,
@@ -594,7 +594,7 @@ def _component_resources_down(
594594
if resource["kind"] == "RayCluster":
595595
api_instance.delete_namespaced_custom_object(
596596
group="ray.io",
597-
version="v1alpha1",
597+
version="v1",
598598
namespace=namespace,
599599
plural="rayclusters",
600600
name=self.app_wrapper_name,
@@ -681,7 +681,7 @@ def get_cluster(cluster_name: str, namespace: str = "default"):
681681
api_instance = client.CustomObjectsApi(api_config_handler())
682682
rcs = api_instance.list_namespaced_custom_object(
683683
group="ray.io",
684-
version="v1alpha1",
684+
version="v1",
685685
namespace=namespace,
686686
plural="rayclusters",
687687
)
@@ -838,7 +838,7 @@ def _ray_cluster_status(name, namespace="default") -> Optional[RayCluster]:
838838
api_instance = client.CustomObjectsApi(api_config_handler())
839839
rcs = api_instance.list_namespaced_custom_object(
840840
group="ray.io",
841-
version="v1alpha1",
841+
version="v1",
842842
namespace=namespace,
843843
plural="rayclusters",
844844
)
@@ -858,7 +858,7 @@ def _get_ray_clusters(namespace="default") -> List[RayCluster]:
858858
api_instance = client.CustomObjectsApi(api_config_handler())
859859
rcs = api_instance.list_namespaced_custom_object(
860860
group="ray.io",
861-
version="v1alpha1",
861+
version="v1",
862862
namespace=namespace,
863863
plural="rayclusters",
864864
)

src/codeflare_sdk/cluster/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RayClusterStatus(Enum):
2727
Defines the possible reportable states of a Ray cluster.
2828
"""
2929

30-
# https://github.com/ray-project/kuberay/blob/master/ray-operator/apis/ray/v1alpha1/raycluster_types.go#L95
30+
# https://github.com/ray-project/kuberay/blob/master/ray-operator/apis/ray/v1/raycluster_types.go#L112-L117
3131
READY = "ready"
3232
UNHEALTHY = "unhealthy"
3333
FAILED = "failed"

src/codeflare_sdk/templates/base-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
# The resource requests and limits in this config are too small for production!
3838
# For an example with more realistic resource configuration, see
3939
# ray-cluster.autoscaler.large.yaml.
40-
apiVersion: ray.io/v1alpha1
40+
apiVersion: ray.io/v1
4141
kind: RayCluster
4242
metadata:
4343
labels:

tests/test-case-bad.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
memory: 5G
3030
nvidia.com/gpu: 7
3131
generictemplate:
32-
apiVersion: ray.io/v1alpha1
32+
apiVersion: ray.io/v1
3333
kind: RayCluster
3434
metadata:
3535
labels:

tests/test-case-no-mcad.yamls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: ray.io/v1alpha1
2+
apiVersion: ray.io/v1
33
kind: RayCluster
44
metadata:
55
labels:

0 commit comments

Comments
 (0)