@@ -125,27 +125,6 @@ help: ## Display this help.
125
125
126
126
# #@ Development
127
127
128
- DEFAULTS_TEST_FILE := test/support/defaults.go
129
-
130
- .PHONY : defaults
131
- defaults :
132
- $(info Regenerating $(DEFAULTS_TEST_FILE ) )
133
- @echo " package support" > $(DEFAULTS_TEST_FILE )
134
- @echo " " >> $(DEFAULTS_TEST_FILE )
135
- @echo " // ***********************" >> $(DEFAULTS_TEST_FILE )
136
- @echo " // DO NOT EDIT THIS FILE" >> $(DEFAULTS_TEST_FILE )
137
- @echo " // ***********************" >> $(DEFAULTS_TEST_FILE )
138
- @echo " " >> $(DEFAULTS_TEST_FILE )
139
- @echo " const (" >> $(DEFAULTS_TEST_FILE )
140
- @echo " CodeFlareSDKVersion = \" $( CODEFLARE_SDK_VERSION) \" " >> $(DEFAULTS_TEST_FILE )
141
- @echo " RayVersion = \" $( RAY_VERSION) \" " >> $(DEFAULTS_TEST_FILE )
142
- @echo " RayImage = \" $( RAY_IMAGE) \" " >> $(DEFAULTS_TEST_FILE )
143
- @echo " " >> $(DEFAULTS_TEST_FILE )
144
- @echo " )" >> $(DEFAULTS_TEST_FILE )
145
- @echo " " >> $(DEFAULTS_TEST_FILE )
146
-
147
- gofmt -w $(DEFAULTS_TEST_FILE)
148
-
149
128
.PHONY : manifests
150
129
manifests : controller-gen # # Generate RBAC objects.
151
130
$(CONTROLLER_GEN ) rbac:roleName=manager-role webhook paths=" ./..."
@@ -169,11 +148,11 @@ modules: ## Update Go dependencies.
169
148
go mod tidy
170
149
171
150
.PHONY : build
172
- build : modules defaults fmt vet # # Build manager binary.
151
+ build : modules fmt vet # # Build manager binary.
173
152
go build -o bin/manager main.go
174
153
175
154
.PHONY : run
176
- run : modules defaults manifests fmt vet # # Run a controller from your host.
155
+ run : modules manifests fmt vet # # Run a controller from your host.
177
156
go run ./main.go
178
157
179
158
.PHONY : image-build
@@ -282,7 +261,7 @@ validate-bundle: install-operator-sdk
282
261
$(OPERATOR_SDK ) bundle validate ./bundle --select-optional suite=operatorframework
283
262
284
263
.PHONY : bundle
285
- bundle : defaults manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
264
+ bundle : manifests kustomize install-operator-sdk # # Generate bundle manifests and metadata, then validate generated files.
286
265
$(OPERATOR_SDK ) generate kustomize manifests -q
287
266
$(SED ) -i -E " s|(- )\$ {MCAD_REPO}.*|\1\$ {MCAD_CRD}|" config/crd/mcad/kustomization.yaml
288
267
cd config/manager && $(KUSTOMIZE ) edit set image controller=$(IMG )
@@ -362,11 +341,11 @@ catalog-push: ## Push a catalog image.
362
341
podman push $(CATALOG_IMG ) $(CATALOG_PUSH_OPT )
363
342
364
343
.PHONY : test-unit
365
- test-unit : defaults manifests fmt vet envtest # # Run unit tests.
344
+ test-unit : manifests fmt vet envtest # # Run unit tests.
366
345
KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) use $( ENVTEST_K8S_VERSION) --bin-dir $( LOCALBIN) -p path) " go test $(go list ./... | grep -v /test/ ) -coverprofile cover.out
367
346
368
347
.PHONY : test-e2e
369
- test-e2e : defaults manifests fmt vet # # Run e2e tests.
348
+ test-e2e : manifests fmt vet # # Run e2e tests.
370
349
go test -timeout 30m -v ./test/e2e
371
350
372
351
.PHONY : kind-e2e
0 commit comments