Skip to content

Commit ada6e82

Browse files
authored
Merge pull request #7 from A-Hilaly/build-controller-script
Enhance `scripts/build-controller.sh` USAGE and error messages
2 parents 6b8af6d + c86dd00 commit ada6e82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ build-ack-generate: ## Build ack-generate binary
2626
@go build ${GO_TAGS} ${GO_LDFLAGS} -o bin/ack-generate cmd/ack-generate/main.go
2727
@echo "ok."
2828

29-
build-controller: build-ack-generate ## Generate controller code for SERVICE
29+
build-controller: ## Generate controller code for SERVICE
3030
@./scripts/install-controller-gen.sh
3131
@./scripts/build-controller.sh $(AWS_SERVICE)
3232

scripts/build-controller.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Environment variables:
5151
ACK_GENERATE_CONFIG_PATH: Specify a path to the generator config YAML file to
5252
instruct the code generator for the service.
5353
Default: services/{SERVICE}/generator.yaml
54+
TEMPLATES_DIR: Overrides the directory containg ack-generate templates
55+
Default: $TEMPLATES_DIR
5456
K8S_RBAC_ROLE_NAME: Name of the Kubernetes Role to use when generating
5557
the RBAC manifests for the custom resource
5658
definitions.
@@ -75,7 +77,7 @@ run:
7577
7678
from the root directory or install ack-generate using:
7779
78-
go get -u github.com/aws-controllers-k8s/code-generator/cmd/ack-generate" 1>&2
80+
go get -u -tags codegen github.com/aws-controllers-k8s/code-generator/cmd/ack-generate" 1>&2
7981
exit 1;
8082
fi
8183
fi

0 commit comments

Comments
 (0)