mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #106118 from liggitt/podsecurity-trimpath
PodSecurity: trim path when building webhook binary
This commit is contained in:
commit
2904aae970
@ -32,7 +32,7 @@ ARCH ?= amd64
|
||||
build:
|
||||
@echo Building PodSecurity webhook...
|
||||
@LDFLAGS=`cd -P . && /usr/bin/env bash -c '. $(KUBE_ROOT)/hack/lib/version.sh && KUBE_ROOT=$(KUBE_ROOT) KUBE_GO_PACKAGE=k8s.io/kubernetes kube::version::ldflags'`; \
|
||||
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(EXECUTABLE) -ldflags "$$LDFLAGS" $(ENTRYPOINT)
|
||||
GOOS=$(OS) GOARCH=$(ARCH) CGO_ENABLED=0 go build -o $(EXECUTABLE) -trimpath -ldflags "$$LDFLAGS" $(ENTRYPOINT)
|
||||
@echo Done!
|
||||
|
||||
# Builds the PodSecurity webhook Docker image.
|
||||
|
Loading…
Reference in New Issue
Block a user