mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
modify pluginator to add support for krm function
This commit is contained in:
30
cmd/pluginator/Makefile
Normal file
30
cmd/pluginator/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
.PHONY: statik test all clean generate run
|
||||
|
||||
FUNC_WRAPPER_SRC_DIR = funcwrappersrc
|
||||
FUNC_WRAPPER_DST_DIR = funcwrapper
|
||||
|
||||
all: test build
|
||||
|
||||
statik:
|
||||
go get github.com/rakyll/statik
|
||||
|
||||
test: generate
|
||||
go test ./...
|
||||
|
||||
generate: statik
|
||||
( \
|
||||
cd krmfunction; \
|
||||
statik -src=$(FUNC_WRAPPER_SRC_DIR) -f -p $(FUNC_WRAPPER_DST_DIR) -include=main.go,go.mod.src \
|
||||
)
|
||||
|
||||
build: generate
|
||||
go build -o pluginator main.go
|
||||
|
||||
install: generate
|
||||
go install .
|
||||
|
||||
run: generate
|
||||
go run . $(ARGS)
|
||||
|
||||
clean:
|
||||
rm -f pluginator
|
||||
Reference in New Issue
Block a user