Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cilium-cli 0.16.16 #181762

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Formula/c/cilium-cli.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class CiliumCli < Formula
desc "CLI to install, manage & troubleshoot Kubernetes clusters running Cilium"
homepage "https://cilium.io"
url "https://github.com/cilium/cilium-cli/archive/refs/tags/v0.16.15.tar.gz"
sha256 "2c3da085574d038c5d456425140177d290c36ccb4dcdb2941357b867876aa48a"
url "https://github.com/cilium/cilium-cli/archive/refs/tags/v0.16.16.tar.gz"
sha256 "2fd62feaffe684f88f5083cf9dbf91df65c0ff4e701c96b05e0b480415588102"
license "Apache-2.0"

# Upstream uses GitHub releases to indicate that a version is released
Expand All @@ -14,26 +14,26 @@ class CiliumCli < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "f78f2725fb238bacf407442bf0b0671420c8d6b616596f68ca4b936517782d52"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ae988301b31ba174453abd6240e22fbf826f38e3e394854478a2528d1e0e219b"
sha256 cellar: :any_skip_relocation, arm64_monterey: "ca2f003066197c96fc48f07da326bb3c8ae605e22eb18a7399dbbb28dcb817f2"
sha256 cellar: :any_skip_relocation, sonoma: "4f12da66841698aead40bf37cfe90bcd7b30fd21788013a46edf015e315413e2"
sha256 cellar: :any_skip_relocation, ventura: "89d008337b484ae5a15bc39a64e0dfdc2f90e5af0b04f5dee04d9ad1d0cedf92"
sha256 cellar: :any_skip_relocation, monterey: "2cd84bdfdede41fbe556f13aa3f8b2252bd805396f3c7e679dc84529e3fca96e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f0fee8faeb7854aef8fc253b0c8e7cd2f31c2c70dbb64a00da3b6348cc250f7d"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "d7dd655df45e0e40255cc8721708bf3a8198d0b49b14529ac49b303756399a89"
sha256 cellar: :any_skip_relocation, arm64_ventura: "5f7f9d27ac1dc2bf2a75ea2ab9177d08a5b6d6e50272e43bc8645b3b38e54931"
sha256 cellar: :any_skip_relocation, arm64_monterey: "988dad18fa4d162376e852c1e5fb56ffcd2d1623ef21d85a8f96b9fddd2eb957"
sha256 cellar: :any_skip_relocation, sonoma: "739f65bc63568c8ee4d20ad8498d91398bcd4a36eb122dea6512a0416cde05fc"
sha256 cellar: :any_skip_relocation, ventura: "e252adde5b94f45867ce1c2c2737604d32e9eced5bebb4327f4206f389ea01d9"
sha256 cellar: :any_skip_relocation, monterey: "7666f99ad340b4f811d33b1327825abe6b9b29b1e7b55218a9861a5af6e99990"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2c164d517ffb7cc1a69e30844387989513d4c290eeb8bd9abc604fc31d0e3a2d"
end

depends_on "go" => :build

def install
ldflags = "-s -w -X github.com/cilium/cilium-cli/defaults.CLIVersion=v#{version}"
ldflags = "-s -w -X github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=v#{version}"
system "go", "build", *std_go_args(ldflags:, output: bin/"cilium"), "./cmd/cilium"

generate_completions_from_executable(bin/"cilium", "completion", base_name: "cilium")
end

test do
assert_match("cilium-cli: v#{version}", shell_output("#{bin}/cilium version 2>&1"))
assert_match("cilium-cli: v#{version}", shell_output("#{bin}/cilium version"))
assert_match("Kubernetes cluster unreachable", shell_output("#{bin}/cilium install 2>&1", 1))
assert_match("Error: Unable to enable Hubble", shell_output("#{bin}/cilium hubble enable 2>&1", 1))
end
Expand Down
Loading