A tool to take a deployed set of kubernetes resources and turn them into a helm release. Only works with helm3 > 3.2.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
389 B

BUILD=`date +%FT%T%z`
LDFLAGS=-ldflags "-X main.buildDate=${BUILD}"
LDFLAGS_STATIC=-ldflags "-s -X main.buildDate=${BUILD}"
.PHONY: deps build dist
go test git.martyn.berlin/martyn/helm-import/cmd
go build cmd ${LDFLAGS}
GO111MODULE=on go mod download
mkdir -p bin || true
cd cmd && go build ${LDFLAGS_STATIC} -installsuffix cgo -o ../bin/helm-import .