Files
4bc22ee385 [PodPool-VK] add main entry function for cache pod manager (#4250) (#4584)
* 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]>
2026-04-16 19:21:34 -07:00

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