@@ -113,7 +113,7 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
113113.PHONY : manifests
114114manifests : gowork controller-gen # # Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
115115 $(CONTROLLER_GEN ) rbac:roleName=manager-role crd webhook paths=" ./..." output:crd:artifacts:config=config/crd/bases && \
116- rm -f api /bases/* && cp -a config/crd/bases api /
116+ rm -f apis /bases/* && cp -a config/crd/bases apis /
117117
118118.PHONY : generate
119119generate : controller-gen # # Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -126,13 +126,13 @@ fmt: ## Run go fmt against code.
126126.PHONY : vet
127127vet : gowork # # Run go vet against code.
128128 go vet ./...
129- go vet ./api /...
129+ go vet ./apis /...
130130
131131
132132.PHONY : tidy
133133tidy : # # Run go mod tidy on every mod file in the repo
134134 go mod tidy
135- cd ./api && go mod tidy
135+ cd ./apis && go mod tidy
136136
137137.PHONY : golangci-lint
138138golangci-lint :
@@ -147,7 +147,7 @@ PROC_CMD = --procs ${PROCS}
147147test : manifests generate fmt vet envtest ginkgo # # Run tests.
148148 KUBEBUILDER_ASSETS=" $( shell $( ENVTEST) -v debug --bin-dir $( LOCALBIN) use $( ENVTEST_K8S_VERSION) -p path) " \
149149 OPERATOR_TEMPLATES=" $( PWD) /templates" \
150- $(GINKGO ) --trace --cover --coverpkg=../../pkg/...,../../controllers,../../api /v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS ) ./test/...
150+ $(GINKGO ) --trace --cover --coverpkg=../../pkg/...,../../controllers,../../apis/nova /v1beta1 --coverprofile cover.out --covermode=atomic --randomize-all ${PROC_CMD} $(GINKGO_ARGS ) ./test/...
151151
152152# #@ Build
153153
@@ -332,36 +332,36 @@ get-ci-tools:
332332# Run go fmt against code
333333gofmt : get-ci-tools
334334 $(CI_TOOLS_REPO_DIR ) /test-runner/gofmt.sh
335- $(CI_TOOLS_REPO_DIR ) /test-runner/gofmt.sh ./api
335+ $(CI_TOOLS_REPO_DIR ) /test-runner/gofmt.sh ./apis
336336
337337# Run go vet against code
338338govet : get-ci-tools
339339 GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/govet.sh
340- GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/govet.sh ./api
340+ GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/govet.sh ./apis
341341
342342# Run go test against code
343343gotest : test
344344
345345# Run golangci-lint test against code
346346golangci : get-ci-tools
347347 GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/golangci.sh
348- GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/golangci.sh ./api
348+ GOWORK=off $(CI_TOOLS_REPO_DIR ) /test-runner/golangci.sh ./apis
349349
350350# Run go lint against code
351351golint : get-ci-tools
352352 export GOWORK=off && PATH=$(GOBIN ) :$(PATH ) ; $(CI_TOOLS_REPO_DIR ) /test-runner/golint.sh
353- export GOWORK=off && PATH=$(GOBIN ) :$(PATH ) ; $(CI_TOOLS_REPO_DIR ) /test-runner/golint.sh ./api
353+ export GOWORK=off && PATH=$(GOBIN ) :$(PATH ) ; $(CI_TOOLS_REPO_DIR ) /test-runner/golint.sh ./apis
354354
355355.PHONY : operator-lint
356356operator-lint : $(LOCALBIN ) gowork # # Runs operator-lint
357357 GOBIN=
$(LOCALBIN ) go install github.com/gibizer/
[email protected] 358- go vet -vettool=$(LOCALBIN ) /operator-lint ./... ./api /...
358+ go vet -vettool=$(LOCALBIN ) /operator-lint ./... ./apis /...
359359
360360.PHONY : gowork
361361gowork : # # Generate go.work file
362362 test -f go.work || GOTOOLCHAIN=$(GOTOOLCHAIN_VERSION ) go work init
363363 go work use .
364- go work use ./api
364+ go work use ./apis
365365 go work sync
366366
367367OPERATOR_NAMESPACE ?= openstack-operators
@@ -429,8 +429,8 @@ force-bump: ## Force bump operator and lib-common dependencies
429429 for dep in $$ (cat go.mod | grep openstack-k8s-operators | grep -vE -- ' indirect|nova-operator|^replace' | awk ' {print $$1}' ); do \
430430 go get $$ dep@$(BRANCH ) ; \
431431 done
432- for dep in $$ (cat api /go.mod | grep openstack-k8s-operators | grep -vE -- ' indirect|nova-operator|^replace' | awk ' {print $$1}' ); do \
433- cd ./api && go get $$ dep@$(BRANCH ) && cd .. ; \
432+ for dep in $$ (cat apis /go.mod | grep openstack-k8s-operators | grep -vE -- ' indirect|nova-operator|^replace' | awk ' {print $$1}' ); do \
433+ cd ./apis && go get $$ dep@$(BRANCH ) && cd .. ; \
434434 done
435435
436436PHONY : crd-schema-check
0 commit comments