Skip to content

Commit

Permalink
Merge pull request #106118 from liggitt/podsecurity-trimpath
Browse files Browse the repository at this point in the history
PodSecurity: trim path when building webhook binary
  • Loading branch information
k8s-ci-robot committed Nov 3, 2021
2 parents a2960dc + 2567165 commit 2904aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staging/src/k8s.io/pod-security-admission/webhook/Makefile
Expand Up @@ -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.
Expand Down

0 comments on commit 2904aae

Please sign in to comment.