kubernetes-helm: force setting version

Without this patch, the Helm client will think it is
&version.Version{SemVer:"v2.13", GitCommit:"", GitTreeState:""}
and install the Tiller image gcr.io/kubernetes-helm/tiller:v2.13 which
does not exist.

Adapted from https://github.com/NixOS/nixpkgs/pull/50918/
This commit is contained in:
Leah Neukirchen 2019-05-03 15:02:12 +02:00
parent 5f1c459e15
commit ba48b87bcd

View file

@ -1,7 +1,7 @@
# Template file for 'kubernetes-helm'
pkgname=kubernetes-helm
version=2.13.1
revision=1
revision=2
wrksrc="helm-${version}"
hostmakedepends="go make git mercurial"
short_desc="Kubernetes Package Manager"
@ -51,7 +51,7 @@ pre_build() {
do_build() {
cd golib/src/k8s.io/helm
TARGETS="linux/${_go_target_arch} linux/${_go_host_arch}" make bootstrap build-cross APP="..." LDFLAGS="-X k8s.io/helm/pkg/version.BuildMetadata="
TARGETS="linux/${_go_target_arch} linux/${_go_host_arch}" make bootstrap build-cross APP="..." LDFLAGS="-X k8s.io/helm/pkg/version.Version=v${version} -X k8s.io/helm/pkg/version.BuildMetadata="
_dist/linux-${_go_host_arch}/helm completion bash > completion.bash
_dist/linux-${_go_host_arch}/helm completion zsh > completion.zsh