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:
parent
5f1c459e15
commit
ba48b87bcd
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'kubernetes-helm'
|
# Template file for 'kubernetes-helm'
|
||||||
pkgname=kubernetes-helm
|
pkgname=kubernetes-helm
|
||||||
version=2.13.1
|
version=2.13.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="helm-${version}"
|
wrksrc="helm-${version}"
|
||||||
hostmakedepends="go make git mercurial"
|
hostmakedepends="go make git mercurial"
|
||||||
short_desc="Kubernetes Package Manager"
|
short_desc="Kubernetes Package Manager"
|
||||||
|
@ -51,7 +51,7 @@ pre_build() {
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
cd golib/src/k8s.io/helm
|
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 bash > completion.bash
|
||||||
_dist/linux-${_go_host_arch}/helm completion zsh > completion.zsh
|
_dist/linux-${_go_host_arch}/helm completion zsh > completion.zsh
|
||||||
|
|
Loading…
Add table
Reference in a new issue