kubernetes-helm: tell Helm what version it is

Helm uses its version to determine what version of Tiller (the server
component) to install. Without this patch it thinks it is `v2.11+unreleased` and
tries to download `gcr.io/kubernetes-helm/tiller:v2.11`. After the patch it
correctly downloads `gcr.io/kubernetes-helm/tiller:v2.11.0`. Fixes #49120.
This commit is contained in:
Teo Klestrup Röijezon 2018-11-22 14:44:44 +01:00
parent 80738ed9dc
commit 77cbf0db0a

View File

@ -18,7 +18,7 @@ buildGoPackage rec {
# Thsese are the original flags from the helm makefile
buildFlagsArray = ''
-ldflags=
-ldflags=-X k8s.io/helm/pkg/version.Version=v${version}
-w
-s
'';