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
399 B

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