kubernetes-cli 1.4.0

Closes #5558.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Andy Zhang 2016-10-03 17:32:34 -07:00 committed by Mike McQuaid
parent 243806dc32
commit ca151c597f

View file

@ -1,8 +1,8 @@
class KubernetesCli < Formula
desc "Kubernetes command-line interface"
homepage "http://kubernetes.io/"
url "https://github.com/kubernetes/kubernetes/archive/v1.3.7.tar.gz"
sha256 "40a655b5ae1734acfda157088a20853aaf87945508edf73497bec5fa26352a9b"
url "https://github.com/kubernetes/kubernetes/archive/v1.4.0.tar.gz"
sha256 "ca62710b3e289b60b251e4fd2fede807c03750e7aaa2795208a92021113c8c7b"
head "https://github.com/kubernetes/kubernetes.git"
bottle do
@ -12,26 +12,19 @@ class KubernetesCli < Formula
sha256 "808c93e78b84f743877690d72aee24a61415af5fc1cc4c7bbd6c7b60fa66b735" => :yosemite
end
devel do
# building from the tag lets it pick up the correct version info
url "https://github.com/kubernetes/kubernetes.git",
:tag => "v1.4.0-alpha.3",
:revision => "b44b716965db2d54c8c7dfcdbcb1d54792ab8559"
version "1.4.0-alpha.3"
end
depends_on "go" => :build
def install
if build.stable?
system "make", "all", "WHAT=cmd/kubectl", "GOFLAGS=-v"
else
# avoids needing to vendor github.com/jteeuwen/go-bindata
rm "./test/e2e/framework/gobindata_util.go"
# Patch needed to avoid vendor dependency on github.com/jteeuwen/go-bindata
# Build will otherwise fail with missing dep
# Raised in https://github.com/kubernetes/kubernetes/issues/34067
rm "./test/e2e/framework/gobindata_util.go"
# Race condition still exists in OSX Yosemite
# Filed issue: https://github.com/kubernetes/kubernetes/issues/34635
ENV.deparallelize { system "make", "generated_files" }
system "make", "kubectl", "GOFLAGS=-v"
ENV.deparallelize { system "make", "generated_files" }
system "make", "kubectl", "GOFLAGS=-v"
end
arch = MacOS.prefer_64_bit? ? "amd64" : "x86"
bin.install "_output/local/bin/darwin/#{arch}/kubectl"