|
48 | 48 |
|
49 | 49 | # Set the Operator SDK version to use. By default, what is installed on the system is used. |
50 | 50 | # This is useful for CI or a project to utilize a specific version of the operator-sdk toolkit. |
51 | | -OPERATOR_SDK_VERSION ?= v1.31.0 |
| 51 | +OPERATOR_SDK_VERSION ?= v1.41.1 |
52 | 52 |
|
53 | 53 | # Image URL to use all building/pushing image targets |
54 | 54 | DEFAULT_IMG ?= quay.io/openstack-k8s-operators/test-operator:latest |
@@ -125,21 +125,21 @@ PROC_CMD = --procs ${PROCS} |
125 | 125 |
|
126 | 126 | .PHONY: test |
127 | 127 | test: manifests generate fmt vet envtest ginkgo ## Run tests. |
128 | | - KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" OPERATOR_TEMPLATES="$(PWD)/templates" $(GINKGO) --trace --cover --coverpkg=../../pkg/ansibletest,../../pkg/horizontest,../../pkg/tempest,../../pkg/tobiko,../../controllers,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS) ./tests/... |
| 128 | + KUBEBUILDER_ASSETS="$(shell $(ENVTEST) -v debug --bin-dir $(LOCALBIN) use $(ENVTEST_K8S_VERSION) -p path)" OPERATOR_TEMPLATES="$(PWD)/templates" $(GINKGO) --trace --cover --coverpkg=../../internal/ansibletest,../../internal/horizontest,../../internal/tempest,../../internal/tobiko,../../internal/controller,../../api/v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS) ./test/... |
129 | 129 |
|
130 | 130 | ##@ Build |
131 | 131 |
|
132 | 132 | .PHONY: build |
133 | 133 | build: generate fmt vet ## Build manager binary. |
134 | | - go build -o bin/manager main.go |
| 134 | + go build -o bin/manager cmd/main.go |
135 | 135 |
|
136 | 136 | .PHONY: run |
137 | 137 | run: export METRICS_PORT?=8080 |
138 | 138 | run: export HEALTH_PORT?=8081 |
139 | 139 | run: export PPROF_PORT?=8082 |
140 | 140 | run: manifests generate fmt vet ## Run a controller from your host. |
141 | 141 | source hack/export_related_images.sh && \ |
142 | | - go run ./main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)" -pprof-bind-address ":$(PPROF_PORT)" |
| 142 | + go run ./cmd/main.go -metrics-bind-address ":$(METRICS_PORT)" -health-probe-bind-address ":$(HEALTH_PORT)" -pprof-bind-address ":$(PPROF_PORT)" |
143 | 143 |
|
144 | 144 | .PHONY: docker-build |
145 | 145 | docker-build: ## test ## Build docker image with the manager. |
@@ -203,7 +203,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest |
203 | 203 | GINKGO ?= $(LOCALBIN)/ginkgo |
204 | 204 |
|
205 | 205 | ## Tool Versions |
206 | | -KUSTOMIZE_VERSION ?= v3.8.7 |
| 206 | +KUSTOMIZE_VERSION ?= v5.6.0 |
207 | 207 | CONTROLLER_TOOLS_VERSION ?= v0.18.0 |
208 | 208 | GOTOOLCHAIN_VERSION ?= go1.24.0 |
209 | 209 |
|
|
0 commit comments