mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
* Pin tool versions with hack/go.mod This change centralizes the tracking of versions for tools used for development and testing. This way, the tools and all their dependencies have their checksums stored in hack/go.sum, which improves supply chain security. * Workspace Sync & Tidy
17 lines
437 B
Makefile
17 lines
437 B
Makefile
export KUSTOMIZE_ROOT ?= $(shell pwd | sed -E 's|(.*\/kustomize)/(.*)|\1|')
|
|
include $(KUSTOMIZE_ROOT)/Makefile-modules.mk
|
|
|
|
generate: $(MYGOBIN)/controller-gen $(MYGOBIN)/embedmd
|
|
go generate ./...
|
|
embedmd -w README.md
|
|
|
|
build: generate
|
|
go build -v -o $(MYGOBIN)/app-fn cmd/main.go
|
|
|
|
.PHONY: example
|
|
example: build
|
|
$(MYGOBIN)/app-fn pkg/exampleapp/testdata/success/basic/config.yaml
|
|
|
|
test: generate
|
|
go test -v -timeout 45m -cover ./...
|