Skip to content

Commit 8a9d684

Browse files
astefanuttiopenshift-merge-robot
authored andcommitted
Upgrade MCAD to version 1.33.0
1 parent 226a560 commit 8a9d684

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BUNDLE_VERSION ?= $(VERSION:v%=%)
1515
INSTASCALE_VERSION ?= v0.0.5
1616

1717
# MCAD_VERSION defines the default version of the MCAD controller
18-
MCAD_VERSION ?= v1.32.0
18+
MCAD_VERSION ?= v1.33.0
1919
# MCAD_REF, MCAD_REPO and MCAD_CRD define the reference to MCAD CRD resources
2020
MCAD_REF ?= release-${MCAD_VERSION}
2121
MCAD_REPO ?= github.com/project-codeflare/multi-cluster-app-dispatcher
@@ -223,6 +223,7 @@ vet: ## Run go vet against code.
223223
.PHONY: modules
224224
modules: ## Update Go dependencies.
225225
go get $(MCAD_REPO)@$(MCAD_VERSION)
226+
go get github.com/ray-project/kuberay/ray-operator
226227

227228
.PHONY: build
228229
build: modules defaults generate fmt vet ## Build manager binary.

config/crd/mcad/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4-
- github.com/project-codeflare/multi-cluster-app-dispatcher/config/crd?ref=release-v0.0.0 # kpt-set: ${MCAD_CRD}
4+
- github.com/project-codeflare/multi-cluster-app-dispatcher/config/crd?ref=v0.0.0 # kpt-set: ${MCAD_CRD}

controllers/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ package controllers
55
// ***********************
66

77
const (
8-
MCADImage = "quay.io/project-codeflare/mcad-controller:release-v1.32.0"
8+
MCADImage = "quay.io/project-codeflare/mcad-controller:release-v1.33.0"
99
InstaScaleImage = "quay.io/project-codeflare/instascale-controller:v0.0.5"
1010
)

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ require (
1111
github.com/openshift-eng/openshift-goimports v0.0.0-20230304234052-c70783e636f2
1212
github.com/openshift/api v0.0.0-20230213134911-7ba313770556
1313
github.com/openshift/client-go v0.0.0-20221019143426-16aed247da5c
14-
github.com/project-codeflare/multi-cluster-app-dispatcher v1.32.0
15-
github.com/ray-project/kuberay/ray-operator v0.0.0-20230802222355-153f35c9fd14
14+
github.com/project-codeflare/multi-cluster-app-dispatcher v1.33.0
15+
github.com/ray-project/kuberay/ray-operator v0.0.0-20230807232553-238cb4e945b6
1616
go.uber.org/zap v1.24.0
1717
k8s.io/api v0.26.3
1818
k8s.io/apimachinery v0.26.3

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
486486
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
487487
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
488488
github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA=
489-
github.com/project-codeflare/multi-cluster-app-dispatcher v1.32.0 h1:17lwqvxcWBTi9245lVZgJPvksGwAGA58s8dl7PzpbyE=
490-
github.com/project-codeflare/multi-cluster-app-dispatcher v1.32.0/go.mod h1:fmbU5LuV1Z2Sbu1FCEoVuw8qxDFcalXvkPyMfGZHHTc=
489+
github.com/project-codeflare/multi-cluster-app-dispatcher v1.33.0 h1:6a+MnxcFSlheC7RIPGg3s/QCt5+7dD8mJKwdpST7i70=
490+
github.com/project-codeflare/multi-cluster-app-dispatcher v1.33.0/go.mod h1:0J0BDSaIN5lvlmgw+32FcMqe8SflXHtHByUbHmPl4w8=
491491
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
492492
github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
493493
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
@@ -519,8 +519,8 @@ github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1
519519
github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo=
520520
github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4=
521521
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
522-
github.com/ray-project/kuberay/ray-operator v0.0.0-20230802222355-153f35c9fd14 h1:KnqFh/uiqY7Zdwr9fUaefMa4j0rYSLkk9tuE4lmW4Ec=
523-
github.com/ray-project/kuberay/ray-operator v0.0.0-20230802222355-153f35c9fd14/go.mod h1:hqphTv0O5l6hHf4/OtEn4ie/OHPoVydLograwaK5cHI=
522+
github.com/ray-project/kuberay/ray-operator v0.0.0-20230807232553-238cb4e945b6 h1:0O9dKI7eCPJIzJD/HfzbQgACq4GTr4j+VpwjdS7Qv0w=
523+
github.com/ray-project/kuberay/ray-operator v0.0.0-20230807232553-238cb4e945b6/go.mod h1:hqphTv0O5l6hHf4/OtEn4ie/OHPoVydLograwaK5cHI=
524524
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
525525
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
526526
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=

test/e2e/mnist_pytorch_mcad_job_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func TestMNISTPyTorchMCAD(t *testing.T) {
137137
},
138138
}
139139

140-
_, err = test.Client().MCAD().ArbV1().AppWrappers(namespace.Name).Create(aw)
140+
_, err = test.Client().MCAD().McadV1beta1().AppWrappers(namespace.Name).Create(test.Ctx(), aw, metav1.CreateOptions{})
141141
test.Expect(err).NotTo(HaveOccurred())
142142
test.T().Logf("Created MCAD %s/%s successfully", aw.Namespace, aw.Name)
143143

test/e2e/mnist_rayjob_mcad_raycluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func TestMNISTRayJobMCADRayCluster(t *testing.T) {
212212
},
213213
}
214214

215-
aw, err = test.Client().MCAD().ArbV1().AppWrappers(namespace.Name).Create(aw)
215+
aw, err = test.Client().MCAD().McadV1beta1().AppWrappers(namespace.Name).Create(test.Ctx(), aw, metav1.CreateOptions{})
216216
test.Expect(err).NotTo(HaveOccurred())
217217
test.T().Logf("Created MCAD %s/%s successfully", aw.Namespace, aw.Name)
218218

test/support/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
package support
1818

1919
import (
20-
mcadclient "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/client/clientset/controller-versioned"
20+
mcadclient "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/client/clientset/versioned"
2121
rayclient "github.com/ray-project/kuberay/ray-operator/pkg/client/clientset/versioned"
2222

2323
"k8s.io/client-go/kubernetes"

test/support/mcad.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
func AppWrapper(t Test, namespace *corev1.Namespace, name string) func(g gomega.Gomega) *mcadv1beta1.AppWrapper {
2828
return func(g gomega.Gomega) *mcadv1beta1.AppWrapper {
29-
aw, err := t.Client().MCAD().ArbV1().AppWrappers(namespace.Name).Get(name, metav1.GetOptions{})
29+
aw, err := t.Client().MCAD().McadV1beta1().AppWrappers(namespace.Name).Get(t.Ctx(), name, metav1.GetOptions{})
3030
g.Expect(err).NotTo(gomega.HaveOccurred())
3131
return aw
3232
}

0 commit comments

Comments
 (0)