Unverified Commit 71152575 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #76651 from dims/move-goldflags-to-an-overrideable-default

Move "-s -w" flags to GOLDFLAGS as an overridable default.
parents 17fe18bd 7e01702a
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
./hack/cherry_pick_pull.sh ./hack/cherry_pick_pull.sh
./hack/ginkgo-e2e.sh ./hack/ginkgo-e2e.sh
./hack/grab-profiles.sh ./hack/grab-profiles.sh
./hack/lib/golang.sh
./hack/lib/init.sh ./hack/lib/init.sh
./hack/lib/swagger.sh ./hack/lib/swagger.sh
./hack/lib/test.sh ./hack/lib/test.sh
......
...@@ -693,7 +693,7 @@ kube::golang::build_binaries() { ...@@ -693,7 +693,7 @@ kube::golang::build_binaries() {
host_platform=$(kube::golang::host_platform) host_platform=$(kube::golang::host_platform)
local goflags goldflags goasmflags gogcflags local goflags goldflags goasmflags gogcflags
goldflags="${GOLDFLAGS:-} -s -w $(kube::version::ldflags)" goldflags="${GOLDFLAGS=-s -w} $(kube::version::ldflags)"
goasmflags="-trimpath=${KUBE_ROOT}" goasmflags="-trimpath=${KUBE_ROOT}"
gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}" gogcflags="${GOGCFLAGS:-} -trimpath=${KUBE_ROOT}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment