Skip to content
Merged
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
37 changes: 10 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ SHELL := /bin/bash # Use bash syntax
# Set up variables
GO111MODULE=on

AWS_SDK_GO_VERSION="$(shell echo $(shell go list -m -f '{{.Version}}' github.com/aws/aws-sdk-go))"
AWS_SDK_GO_VERSIONED_PATH="$(shell echo github.com/aws/aws-sdk-go@$(AWS_SDK_GO_VERSION))"
ELASTICACHE_API_PATH="$(shell echo $(shell go env GOPATH))/pkg/mod/$(AWS_SDK_GO_VERSIONED_PATH)/service/elasticache/elasticacheiface"
SERVICE_CONTROLLER_SRC_PATH="$(shell pwd)"

# Build ldflags
VERSION ?= "v0.0.0"
GITCOMMIT=$(shell git rev-parse HEAD)
Expand All @@ -16,34 +11,22 @@ GO_LDFLAGS=-ldflags "-X main.version=$(VERSION) \
-X main.buildHash=$(GITCOMMIT) \
-X main.buildDate=$(BUILDDATE)"

.PHONY: all test local-test clean-mocks mocks
.PHONY: all test local-test

all: test

test: | mocks ## Run code tests
go test -v ./...
local-run-controller: ## Run a controller image locally for SERVICE
@go run ./cmd/controller/main.go \
--aws-region=us-west-2 \
--enable-development-logging \
--log-level=debug

test-cover: | mocks ## Run code tests with resources coverage
go test -coverpkg=./pkg/resource/... -covermode=count -coverprofile=coverage.out ./...
go tool cover -func=coverage.out
test: ## Run code tests
go test -v ./...

local-test: | mocks ## Run code tests using go.local.mod file
local-test: ## Run code tests using go.local.mod file
go test -modfile=go.local.mod -v ./...

clean-mocks: ## Remove mocks directory
rm -rf mocks

install-mockery:
@scripts/install-mockery.sh

mocks: install-mockery ## Build mocks
go get -d $(AWS_SDK_GO_VERSIONED_PATH)
@echo "building mocks for $(ELASTICACHE_API_PATH) ... "
@pushd $(ELASTICACHE_API_PATH) 1>/dev/null; \
$(SERVICE_CONTROLLER_SRC_PATH)/bin/mockery --all --dir=. --output=$(SERVICE_CONTROLLER_SRC_PATH)/mocks/aws-sdk-go/elasticache/ ; \
popd 1>/dev/null;
@echo "ok."

help: ## Show this help.
@grep -F -h "##" $(MAKEFILE_LIST) | grep -F -v grep | sed -e 's/\\$$//' \
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'
| awk -F'[:#]' '{print $$1 = sprintf("%-30s", $$1), $$4}'
1 change: 1 addition & 0 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ aliases:
- jaypipes
- mhausenblas
- a-hilaly
- rushmash91
- RedbackThomson
- vijtrip2
# TODO: Add your team members to your team controller alias
Expand Down
14 changes: 7 additions & 7 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2024-06-28T14:33:25Z"
build_hash: 14cef51778d471698018b6c38b604181a6948248
go_version: go1.22.2
version: v0.34.0
api_directory_checksum: 73afd1cf92f1261c45bbb52544adf4da5c6a7cd0
build_date: "2025-02-17T19:36:08Z"
build_hash: 8762917215d9902b2011a2b0b1b0c776855a683e
go_version: go1.23.4
version: v0.42.0
api_directory_checksum: 0f68037c7970cd69c9365d191e78762f7ed5a7c5
api_version: v1alpha1
aws_sdk_go_version: v1.49.0
aws_sdk_go_version: v1.32.6
generator_config_info:
file_checksum: 3c359b3f45716af86c99ab2ea0f2ab50eeae5dc9
file_checksum: 6cf2b7211e26d4a764cd0c6e0959cc77b2b6cbed
original_file_name: generator.yaml
last_modification:
reason: API generation
75 changes: 36 additions & 39 deletions apis/v1alpha1/cache_cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apis/v1alpha1/cache_parameter_group.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading