Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ GO_LDFLAGS=-ldflags "-X $(IMPORT_PATH)/pkg/version.Version=$(VERSION) \
# aws-sdk-go/private/model/api package is gated behind a build tag "codegen"...
GO_CMD_FLAGS=-tags codegen

.PHONY: all build-ack-generate test \
build-controller build-controller-image \
.PHONY: all build-ack-generate build-controller test \
build-controller-image \
local-build-controller-image lint-shell \
check-crd-compatibility

Expand All @@ -30,12 +30,18 @@ build-ack-generate: ## Build ack-generate binary
@go build ${GO_CMD_FLAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
@echo "ok."

build-controller: build-ack-generate ## Generate controller code for SERVICE
@./scripts/install-controller-gen.sh
@echo "==== building $(AWS_SERVICE)-controller ===="
@./scripts/build-controller.sh $(AWS_SERVICE)
@echo "==== building $(AWS_SERVICE)-controller release artifacts ===="
@./scripts/build-controller-release.sh $(AWS_SERVICE)
CONTROLLER_PATH ?= ../$(AWS_SERVICE)-controller
RELEASE_VERSION ?= $(shell cd $(CONTROLLER_PATH) && git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0-non-release-version")

ACK_GENERATE_OLM ?= false
OLM_CONFIG_PATH ?= $(CONTROLLER_PATH)/olm/olmconfig.yaml

build-controller: build-ack-generate ## Generate a service controller (SERVICE=s3)
@$(CURDIR)/bin/ack-generate controller $(AWS_SERVICE) -o $(CONTROLLER_PATH)
@$(CURDIR)/bin/ack-generate release $(AWS_SERVICE) $(RELEASE_VERSION) -o $(CONTROLLER_PATH)
ifeq ($(ACK_GENERATE_OLM),true)
@$(CURDIR)/bin/ack-generate olm $(AWS_SERVICE) $(RELEASE_VERSION) -o $(CONTROLLER_PATH) --olm-config $(OLM_CONFIG_PATH)
endif

build-controller-image: export LOCAL_MODULES = false
build-controller-image: ## Build container image for SERVICE
Expand Down
147 changes: 0 additions & 147 deletions cmd/ack-generate/command/apis.go

This file was deleted.

Loading