Merge pull request #44346 from mikedanese/build-static

Automatic merge from submit-queue (batch tested with PRs 41106, 44346, 44929, 44979, 45027)

bazel: statically link dockerized components
This commit is contained in:
Kubernetes Submit Queue
2017-04-27 12:11:00 -07:00
committed by GitHub
9 changed files with 54 additions and 11 deletions

View File

@@ -10,6 +10,12 @@ load(
go_binary(
name = "kube-proxy",
gc_linkopts = [
"-linkmode",
"external",
"-extldflags",
"-static",
],
library = ":go_default_library",
linkstamp = "k8s.io/kubernetes/pkg/version",
tags = ["automanaged"],