kubesess icon indicating copy to clipboard operation
kubesess copied to clipboard

Release on brew

Open Ramilito opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe.

I want to use homebrew to download

Describe the solution you'd like

want to be able to run the command brew install kubesess

Describe alternatives you've considered

Adding arm binary to releases helps a bit

Additional context

image

Ramilito avatar Aug 13 '22 10:08 Ramilito

When above 75 stars we can add this formula

class Kubesess < Formula
  desc "Manage multiple kubernetes cluster at the same time"
  homepage "https://rentarami.se/posts/2022-08-05-kube-context-2/"
  url "https://github.com/Ramilito/kubesess/archive/refs/tags/1.2.2.tar.gz"
  sha256 "237836053935a352bc61f362d1d2fd1892b0b1f49838b3c294ed1d81922d9328"
  license "MIT"

  depends_on "rust" => :build
  depends_on "kubernetes-cli" => :test

  def install
    system "cargo", "install", *std_cargo_args
  end

  test do
    shell_output("#{bin}/kubesess -v kubesess-test context")
    assert_predicate testpath/".kube/cache/kubesess-test", :exist?
  end
end

Steps to take:

  1. brew create --rust https://github.com/Ramilito/kubesess
  2. use the formula above
  3. brew install --build-from-source Kubesess
  4. brew audit --strict --new-formula --online kubesess

Ramilito avatar Aug 13 '22 10:08 Ramilito

Reached 76 stars.. can create the brew package now :)

kostyay avatar Aug 23 '22 08:08 kostyay

image

I think the repo was created 24 days ago, so 6 days left :(

Ramilito avatar Aug 23 '22 08:08 Ramilito

PR up on brew, waiting for approval! https://github.com/Homebrew/homebrew-core/pull/109171

Ramilito avatar Aug 29 '22 19:08 Ramilito

It's now sort of in brew, It can be installed with: brew install kubesess

It is not including the completion and alias scripts with this, will try to include it and submit another PR.

Note If anyone does install it remember that you need the scripts from the same version that's on brew!

Ramilito avatar Sep 02 '22 01:09 Ramilito

Submittet a new PR: https://github.com/Homebrew/homebrew-core/pull/109456

Ramilito avatar Sep 02 '22 03:09 Ramilito

kubesess is now available on brew! Updated readme to highlight one issue with the script for those that don't have completion setup.

Ramilito avatar Sep 03 '22 18:09 Ramilito