|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
VERSION?=$(shell grep 'VERSION' cmd/flux/main.go | awk '{ print $$4 }' | head -n 1 | tr -d '"')
|
|
|
|
|
EMBEDDED_MANIFESTS_TARGET=cmd/flux/manifests
|
|
|
|
|
EMBEDDED_MANIFESTS_TARGET=cmd/flux/.manifests.done
|
|
|
|
|
TEST_KUBECONFIG?=/tmp/flux-e2e-test-kubeconfig
|
|
|
|
|
ENVTEST_BIN_VERSION?=latest
|
|
|
|
|
KUBEBUILDER_ASSETS?="$(shell $(SETUP_ENVTEST) use -i $(ENVTEST_BIN_VERSION) -p path)"
|
|
|
|
@ -46,6 +46,7 @@ test-with-kind: setup-envtest
|
|
|
|
|
|
|
|
|
|
$(EMBEDDED_MANIFESTS_TARGET): $(call rwildcard,manifests/,*.yaml *.json)
|
|
|
|
|
./manifests/scripts/bundle.sh
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
|
|
build: $(EMBEDDED_MANIFESTS_TARGET)
|
|
|
|
|
CGO_ENABLED=0 go build -ldflags="-s -w -X main.VERSION=$(VERSION)" -o ./bin/flux ./cmd/flux
|
|
|
|
|