@@ -12,17 +12,17 @@ VERSION ?= v0.0.0-dev
12
12
BUNDLE_VERSION ?= $(VERSION:v%=% )
13
13
14
14
# INSTASCALE_VERSION defines the default version of the InstaScale controller
15
- INSTASCALE_VERSION ?= v0.3.1
15
+ INSTASCALE_VERSION ?= v0.4.0
16
16
INSTASCALE_REPO ?= github.com/project-codeflare/instascale
17
17
18
18
# MCAD_VERSION defines the default version of the MCAD controller
19
- MCAD_VERSION ?= v1.38.1
19
+ MCAD_VERSION ?= v1.39.0
20
20
MCAD_REPO ?= github.com/project-codeflare/multi-cluster-app-dispatcher
21
21
# Upstream MCAD is currently only creating release tags of the form `vX.Y.Z` (i.e the version)
22
22
MCAD_CRD ?= ${MCAD_REPO}/config/crd?ref=${MCAD_VERSION}
23
23
24
24
# KUBERAY_VERSION defines the default version of the KubeRay operator (used for testing)
25
- KUBERAY_VERSION ?= v1.0.0-rc.1
25
+ KUBERAY_VERSION ?= v1.0.0
26
26
27
27
# RAY_VERSION defines the default version of Ray (used for testing)
28
28
RAY_VERSION ?= 2.5.0
@@ -158,7 +158,7 @@ modules: ## Update Go dependencies.
158
158
go mod tidy
159
159
160
160
.PHONY : build
161
- build : modules fmt vet # # Build manager binary.
161
+ build : fmt vet # # Build manager binary.
162
162
go build \
163
163
-ldflags " \
164
164
-X ' main.OperatorVersion=$(BUILD_VERSION)' \
@@ -169,7 +169,7 @@ build: modules fmt vet ## Build manager binary.
169
169
-o bin/manager main.go
170
170
171
171
.PHONY : run
172
- run : modules manifests fmt vet # # Run a controller from your host.
172
+ run : manifests fmt vet # # Run a controller from your host.
173
173
go run ./main.go
174
174
175
175
.PHONY : image-build
@@ -198,7 +198,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
198
198
199
199
.PHONY : deploy
200
200
deploy : manifests kustomize # # Deploy controller to the K8s cluster specified in ~/.kube/config.
201
- cd config/manager && $( KUSTOMIZE ) edit set image controller= ${IMG}
201
+ cd config/manager && IMAGE= $( IMG ) perl -i -pe ' s/codeflare-operator- controller-image=(.*)$$/codeflare-operator-controller-image=$$ENV{"IMAGE"}/ ' params.env
202
202
$(KUSTOMIZE ) build config/${ENV} | kubectl apply -f -
203
203
git restore config/*
204
204
@@ -229,7 +229,7 @@ SED ?= /usr/bin/sed
229
229
KUSTOMIZE_VERSION ?= v4.5.4
230
230
CODEGEN_VERSION ?= v0.27.2
231
231
CONTROLLER_TOOLS_VERSION ?= v0.9.2
232
- YQ_VERSION ?= v4.30.8 # # latest version that works with go1.19
232
+ YQ_VERSION ?= v4.35.2 # # latest version that works with go1.20
233
233
OPERATOR_SDK_VERSION ?= v1.27.0
234
234
GH_CLI_VERSION ?= 2.30.0
235
235
@@ -283,8 +283,8 @@ validate-bundle: install-operator-sdk
283
283
284
284
.PHONY : bundle
285
285
bundle : manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
286
+ cd config/manager && IMAGE=$(IMG ) perl -i -pe ' s/codeflare-operator-controller-image=(.*)$$/codeflare-operator-controller-image=$$ENV{"IMAGE"}/' params.env
286
287
$(OPERATOR_SDK ) generate kustomize manifests -q
287
- cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
288
288
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/metadata/annotations/containerImage", "value": "$(IMG)" }]' --kind ClusterServiceVersion
289
289
cd config/manifests && $(KUSTOMIZE ) edit add patch --patch ' [{"op":"add", "path":"/spec/replaces", "value": "codeflare-operator.$(PREVIOUS_VERSION)" }]' --kind ClusterServiceVersion
290
290
$(KUSTOMIZE ) build config/manifests | $(OPERATOR_SDK ) generate bundle $(BUNDLE_GEN_FLAGS )
0 commit comments