velero: renamed from ark
Signed-off-by: Nolan Brubaker <brubakern@vmware.com> Closes #37130. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
5e82521505
commit
27ed5b025e
3 changed files with 30 additions and 36 deletions
|
@ -1,36 +0,0 @@
|
|||
class Ark < Formula
|
||||
desc "Disaster recovery for Kubernetes cluster resources and persistent volumes"
|
||||
homepage "https://github.com/heptio/ark"
|
||||
url "https://github.com/heptio/ark/archive/v0.10.1.tar.gz"
|
||||
sha256 "7e618a2581a4a9bae19cbe5a8cb71adb768bd2416203c0ba909a6b3a2e19aa0f"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "0c15b83535cb655e396204e9f1887dace4b3cb88558079627579628137a675ca" => :mojave
|
||||
sha256 "0132082ee86a01b820b368e6016559e59c24722faf40d70a585394994637f3b2" => :high_sierra
|
||||
sha256 "33c5450785b103c91e5c2b509c9e16364dce36a07b4ed246c4454b71140f8fc4" => :sierra
|
||||
end
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/heptio/ark").install buildpath.children
|
||||
|
||||
cd "src/github.com/heptio/ark" do
|
||||
system "go", "build", "-o", bin/"ark", "-installsuffix", "static",
|
||||
"-ldflags",
|
||||
"-X github.com/heptio/ark/pkg/buildinfo.Version=#{version}",
|
||||
"./cmd/ark"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{bin}/ark 2>&1")
|
||||
assert_match "Heptio Ark is a tool for managing disaster recovery", output
|
||||
assert_match "Version: #{version}", shell_output("#{bin}/ark version 2>&1")
|
||||
system bin/"ark", "client", "config", "set", "TEST=value"
|
||||
assert_match "value", shell_output("#{bin}/ark client config get 2>&1")
|
||||
end
|
||||
end
|
29
Formula/velero.rb
Normal file
29
Formula/velero.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
class Velero < Formula
|
||||
desc "Disaster recovery for Kubernetes resources and persistent volumes"
|
||||
homepage "https://github.com/heptio/velero"
|
||||
url "https://github.com/heptio/velero/archive/v0.11.0.tar.gz"
|
||||
sha256 "366f4c1ed5800dbdddefa60ed88bdd82b406b69b76a214b1d7108997a2f973ac"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/heptio/velero").install buildpath.children
|
||||
|
||||
cd "src/github.com/heptio/velero" do
|
||||
system "go", "build", "-o", bin/"velero", "-installsuffix", "static",
|
||||
"-ldflags",
|
||||
"-X github.com/heptio/velero/pkg/buildinfo.Version=#{version}",
|
||||
"./cmd/velero"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output("#{bin}/velero 2>&1")
|
||||
assert_match "Velero is a tool for managing disaster recovery", output
|
||||
assert_match "Version: #{version}", shell_output("#{bin}/velero version --client-only 2>&1")
|
||||
system bin/"velero", "client", "config", "set", "TEST=value"
|
||||
assert_match "value", shell_output("#{bin}/velero client config get 2>&1")
|
||||
end
|
||||
end
|
|
@ -6,6 +6,7 @@
|
|||
"apache-spark15": "apache-spark@15",
|
||||
"apache-spark16": "apache-spark@16",
|
||||
"app-engine-java-sdk": "app-engine-java",
|
||||
"ark": "velero",
|
||||
"arm": "nyx",
|
||||
"artifactory-cli-go": "jfrog-cli-go",
|
||||
"autoconf213": "autoconf@213",
|
||||
|
|
Loading…
Reference in a new issue