Skip to content

Commit

Permalink
Add support for Homebrew on Linux (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Feb 27, 2021
1 parent 6bcb712 commit eace2a7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dist/kauthproxy.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
class Kauthproxy < Formula
desc "A kubectl plugin to forward a local port to a pod or service via authentication proxy"
homepage "https://github.com/int128/kauthproxy"
url "https://github.com/int128/kauthproxy/releases/download/{{ env "VERSION" }}/kauthproxy_darwin_amd64.zip"
version "{{ env "VERSION" }}"
sha256 "{{ sha256 .darwin_amd64_archive }}"

on_macos do
url "https://github.com/int128/kauthproxy/releases/download/{{ env "VERSION" }}/kauthproxy_darwin_amd64.zip"
sha256 "{{ sha256 .darwin_amd64_archive }}"
end
on_linux do
url "https://github.com/int128/kauthproxy/releases/download/{{ env "VERSION" }}/kauthproxy_linux_amd64.zip"
sha256 "{{ sha256 .linux_amd64_archive }}"
end

def install
bin.install "kauthproxy" => "kauthproxy"
ln_s bin/"kauthproxy", bin/"kubectl-auth_proxy"
end

test do
system "#{bin}/kauthproxy -h"
system "#{bin}/kubectl-auth_proxy -h"
Expand Down

0 comments on commit eace2a7

Please sign in to comment.