Skip to content

Commit 6f34c16

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rhoai-3.0
2 parents 6504c1c + e44e854 commit 6f34c16

File tree

9 files changed

+6
-397
lines changed

9 files changed

+6
-397
lines changed

examples/hpo-raytune/notebook/raytune-oai-MR-gRPC-demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"outputs": [],
4444
"source": [
45-
"# Create and configure our cluster object (and appwrapper)\n",
45+
"# Create and configure our cluster object\n",
4646
"# NOTE: If running outside of RHOAI notebooks, add the following line to the cluster configuration:\n",
4747
"# namespace=\"rhods-notebooks\"\n",
4848
"cluster_name='terrestrial-raytest'\n",

examples/hpo-raytune/notebook/raytune-oai-demo-mlmd.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"outputs": [],
4444
"source": [
45-
"# Create and configure our cluster object (and appwrapper)\n",
45+
"# Create and configure our cluster object\n",
4646
"# NOTE: If running outside of RHOAI notebooks, add the following line to the cluster configuration:\n",
4747
"# namespace=\"rhods-notebooks\"\n",
4848
"cluster_name='terrestrial-raytest'\n",

examples/hpo-raytune/notebook/raytune-oai-demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"outputs": [],
4545
"source": [
46-
"# Create and configure our cluster object (and appwrapper)\n",
46+
"# Create and configure our cluster object\n",
4747
"# NOTE: If running outside of RHOAI notebooks, add the following line to the cluster configuration:\n",
4848
"# namespace=\"rhods-notebooks\"\n",
4949
"cluster_name=\"terrestrial-raytest\"\n",

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
github.com/onsi/gomega v1.32.0
99
github.com/openshift/api v0.0.0-20230718161610-2a3e8b481cec
1010
github.com/openshift/client-go v0.0.0-20230718165156-6014fb98e86a
11-
github.com/project-codeflare/appwrapper v0.8.0
1211
github.com/prometheus/client_golang v1.20.4
1312
github.com/prometheus/common v0.57.0
1413
github.com/ray-project/kuberay/ray-operator v1.1.1

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
121121
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
122122
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
123123
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
124-
github.com/project-codeflare/appwrapper v0.8.0 h1:vWHNtXUtHutN2EzYb6rryLdESnb8iDXsCokXOuNYXvg=
125-
github.com/project-codeflare/appwrapper v0.8.0/go.mod h1:FMQ2lI3fz6LakUVXgN1FTdpsc3BBkNIZZgtMmM9J5UM=
126124
github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI=
127125
github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
128126
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=

tests/odh/resources/mnist_ray_mini.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
},
7272
"outputs": [],
7373
"source": [
74-
"# Create our cluster and submit appwrapper\n",
74+
"# Create our cluster\n",
7575
"cluster = Cluster(\n",
7676
" ClusterConfiguration(\n",
7777
" namespace=namespace,\n",

tests/odh/support.go

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ import (
2323

2424
gonanoid "github.com/matoous/go-nanoid/v2"
2525
gomega "github.com/onsi/gomega"
26-
awv1beta2 "github.com/project-codeflare/appwrapper/api/v1beta2"
2726
rayv1 "github.com/ray-project/kuberay/ray-operator/apis/ray/v1"
2827

2928
v1 "k8s.io/api/core/v1"
30-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
31-
"k8s.io/apimachinery/pkg/runtime"
3229

3330
"github.com/opendatahub-io/distributed-workloads/tests/common/support"
3431
)
@@ -87,72 +84,3 @@ func uniqueSuffix(prefix string) string {
8784
suffix := gonanoid.MustGenerate("1234567890abcdef", 4)
8885
return prefix + "-" + suffix
8986
}
90-
91-
func newAppWrapperWithRayCluster(awName string, rcName string, namespace string) *awv1beta2.AppWrapper {
92-
return &awv1beta2.AppWrapper{
93-
TypeMeta: metav1.TypeMeta{
94-
APIVersion: "workload.codeflare.dev/v1beta2",
95-
Kind: "AppWrapper",
96-
},
97-
ObjectMeta: metav1.ObjectMeta{
98-
Name: awName,
99-
Namespace: namespace,
100-
},
101-
Spec: awv1beta2.AppWrapperSpec{
102-
Components: []awv1beta2.AppWrapperComponent{
103-
{
104-
Template: runtime.RawExtension{
105-
Object: &rayv1.RayCluster{
106-
TypeMeta: metav1.TypeMeta{
107-
APIVersion: "ray.io/v1",
108-
Kind: "RayCluster",
109-
},
110-
ObjectMeta: metav1.ObjectMeta{
111-
Name: rcName,
112-
Namespace: namespace,
113-
},
114-
Spec: rayv1.RayClusterSpec{
115-
HeadGroupSpec: rayv1.HeadGroupSpec{
116-
RayStartParams: map[string]string{},
117-
Template: v1.PodTemplateSpec{
118-
Spec: v1.PodSpec{
119-
Containers: []v1.Container{
120-
{
121-
Name: "ray-head",
122-
Image: "rayproject/ray:latest",
123-
Ports: []v1.ContainerPort{
124-
{
125-
Name: "redis",
126-
ContainerPort: 6379,
127-
},
128-
},
129-
},
130-
},
131-
},
132-
},
133-
},
134-
WorkerGroupSpecs: []rayv1.WorkerGroupSpec{
135-
{
136-
GroupName: "workers",
137-
Replicas: support.Ptr(int32(1)),
138-
RayStartParams: map[string]string{},
139-
Template: v1.PodTemplateSpec{
140-
Spec: v1.PodSpec{
141-
Containers: []v1.Container{
142-
{
143-
Name: "ray-worker",
144-
Image: "rayproject/ray:latest",
145-
},
146-
},
147-
},
148-
},
149-
},
150-
},
151-
},
152-
},
153-
},
154-
},
155-
},
156-
},
157-
}
158-
}

0 commit comments

Comments
 (0)