Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Distributed Workloads v0.1.0 Release
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Asthana <anishasthana1@gmail.com>
  • Loading branch information
anishasthana committed Aug 17, 2023
1 parent 9a6c536 commit cf4b04b
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 22 deletions.
10 changes: 5 additions & 5 deletions codeflare-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ Integration of this stack into the Open Data Hub is owned by the Distributed Wor
Group. See [this page](https://github.com/opendatahub-io/opendatahub-community/tree/master/wg-distributed-workloads)
for further details and how to get in touch.

### Compatibilty Matrix
### Compatibility Matrix

| Component | Version |
|------------------------------|---------|
| CodeFlare Operator | v0.0.4 |
| Multi-Cluster App Dispatcher | v1.31.0 |
| CodeFlare-SDK | v0.4.4 |
| InstaScale | v0.0.4 |
| CodeFlare Operator | v0.1.0 |
| Multi-Cluster App Dispatcher | v1.33.0 |
| CodeFlare-SDK | v0.6.1 |
| InstaScale | v0.0.6 |
| KubeRay | v0.5.0 |

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion codeflare-stack/base/codeflare-notebook-imagestream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ spec:
name: latest
from:
kind: DockerImage
name: quay.io/project-codeflare/notebook:latest
name: quay.io/project-codeflare/notebook:v0.6.1
importPolicy:
scheduled: true
17 changes: 9 additions & 8 deletions ray/operator/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

configMapGenerator:
- name: codeflare-stack-config
- name: ray-config
envs:
- params.env
configurations:
Expand All @@ -12,20 +12,21 @@ vars:
- name: namespace
objref:
kind: ConfigMap
name: codeflare-stack-config
name: ray-config
apiVersion: v1
fieldref:
fieldpath: data.namespace
- name: odh-kuberay-operator-controller-image
objref:
kind: ConfigMap
name: ray-config
apiVersion: v1
fieldref:
fieldpath: data.odh-kuberay-operator-controller-image

resources:
- ../crd
- ../rbac
- ../manager
- ../prometheus
- ../scc

images:
- name: kuberay/operator
newName: quay.io/opendatahub/kuberay-operator
newTag: v0.5.0

1 change: 1 addition & 0 deletions ray/operator/base/params.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
namespace=opendatahub
odh-kuberay-operator-controller-image=quay.io/opendatahub/kuberay-operator:v0.5.0
4 changes: 3 additions & 1 deletion ray/operator/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ varReference:
- path: subjects[]/namespace
kind: ClusterRoleBinding
- path: users[]
kind: SecurityContextConstraints
kind: SecurityContextConstraints
- path: spec/template/spec/containers[]/image
kind: Deployment
4 changes: 1 addition & 3 deletions ray/operator/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ spec:
containers:
- command:
- /manager
# args:
# - --enable-leader-election
image: kuberay/operator
image: $(odh-kuberay-operator-controller-image)
ports:
- name: http
containerPort: 8080
Expand Down
3 changes: 2 additions & 1 deletion tests/basictests/ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function start_test_ray_cluster(){
os::cmd::expect_success "oc project ${ODHPROJECT}"
os::cmd::expect_success "oc apply -f ${RESOURCEDIR}/ray/ray-test-cluster-test.yaml"
os::cmd::try_until_text "oc get RayCluster kuberay-cluster-test" "kuberay-cluster-test" $odhdefaulttimeout $odhdefaultinterval
sleep 15
os::cmd::try_until_text "oc get pods -l ray.io/identifier=kuberay-cluster-test-head -o jsonpath='{$.items[*].status.phase}'" "Running" $odhdefaulttimeout $odhdefaultinterval
os::cmd::try_until_text "oc get pods -l ray.io/identifier=kuberay-cluster-test-worker -o jsonpath='{$.items[*].status.phase}'" "Running" $odhdefaulttimeout $odhdefaultinterval
}

function check_functionality(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
source: community-operators
sourceNamespace: openshift-marketplace
installPlanApproval: Manual
startingCSV: codeflare-operator.v0.0.4
startingCSV: codeflare-operator.v0.1.0
5 changes: 3 additions & 2 deletions tests/resources/codeflare-stack/mnist_ray_mini.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"outputs": [],
"source": [
"# Create our cluster and submit appwrapper\n",
"cluster = Cluster(ClusterConfiguration(namespace='opendatahub', name='mnisttest', min_worker=2, max_worker=2, min_cpus=2, max_cpus=2, min_memory=4, max_memory=4, gpu=0, instascale=False))"
"cluster = Cluster(ClusterConfiguration(namespace='opendatahub', name='mnisttest', num_workers=2, min_cpus=2, max_cpus=2, min_memory=4, max_memory=4, num_gpus=0, instascale=False))"
]
},
{
Expand All @@ -50,7 +50,8 @@
},
"outputs": [],
"source": [
"cluster.wait_ready()"
"cluster.wait_ready()\n",
"sleep(30)"
]
},
{
Expand Down

0 comments on commit cf4b04b

Please sign in to comment.