Browse Source

Merge pull request #744 from tomdee/smaller-binaries

Makefile: Smaller flanneld binary
Tom Denham 7 years ago
parent
commit
dec0c1f413
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -38,12 +38,12 @@ endif
 GOARM=7
 
 # List images with gcloud alpha container images list-tags gcr.io/google_containers/kube-cross
-KUBE_CROSS_TAG=v1.7.5-3
+KUBE_CROSS_TAG=v1.8.3-1
 IPTABLES_VERSION=1.4.21
 
 dist/flanneld: $(shell find . -type f  -name '*.go')
 	go build -o dist/flanneld \
-	  -ldflags "-X github.com/coreos/flannel/version.Version=$(TAG)"
+	  -ldflags "-s -w -X github.com/coreos/flannel/version.Version=$(TAG)"
 
 test: license-check gofmt
 	go test -cover $(TEST_PACKAGES_EXPANDED)