mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
* add main code to podpool * add kubeletVersion function * fix k8s version and add makefile * remove some unused var * Update podpool/Makefile Signed-off-by: Rueian <[email protected]> * resolve cursor conversation --------- Signed-off-by: Rueian <[email protected]> Co-authored-by: Rueian <[email protected]>
13 lines
503 B
Makefile
13 lines
503 B
Makefile
.PHONY: build mod
|
|
build: bin/virtual-kubelet
|
|
|
|
mod:
|
|
@go mod tidy
|
|
|
|
bin/virtual-kubelet: BUILD_VERSION ?= $(shell git describe --tags --always)
|
|
bin/virtual-kubelet: K8S_VERSION ?= v$(shell cd $(CURDIR) && go list -m k8s.io/api | awk '{print $$2}' | sed 's/^v0\./1./')
|
|
bin/virtual-kubelet: VERSION_FLAGS := -X "main.buildVersion=$(BUILD_VERSION)" -X "main.k8sVersion=$(K8S_VERSION)"
|
|
|
|
bin/%:
|
|
CGO_ENABLED=0 go build -ldflags '-extldflags "-static" $(VERSION_FLAGS)' -o bin/$(*) ./cmd
|