Skip to content

Commit

Permalink
Merge pull request #5 from meltwater/add_tooling
Browse files Browse the repository at this point in the history
Add sops, helmfile, helm plugins, vals
  • Loading branch information
recollir authored Mar 18, 2021
2 parents 739a77f + 0b2d78c commit adc9cf0
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Formula/helm3.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
class Helm3 < Formula
version "3.4.1"
version "3.5.3"
desc "Helm is a tool for managing Charts. Charts are packages of pre-configured Kubernetes resources."
homepage "https://github.com/meltwater/homebrew-fks"
url "https://github.com/meltwater/homebrew-fks/releases/download/helm3-v#{version}/helm-v#{version}-darwin-amd64.tar.gz"
sha256 "71d213d63e1b727d6640c4420aee769316f0a93168b96073d166edcd3a425b3d"
url "https://github.com/meltwater/homebrew-fks/releases/download/helm3-v#{version}/helm-darwin-amd64.tar.gz"
sha256 "451ad70dfe286e3979c78ecf7074f4749d93644da8aa2cc778e2f969771f1794"

def install
bin.install "helm" => "helm3"
system "helm3", "plugin", "install", "https://github.com/databus23/helm-diff", "--version", "v3.1.3"
system "helm3", "plugin", "install", "https://github.com/jkroepke/helm-secrets", "--version", "v3.5.0"
system "helm3", "plugin", "install", "https://github.com/aslafy-z/helm-git", "--version", "v0.10.0"
end

# Homebrew requires tests.
Expand Down
16 changes: 16 additions & 0 deletions Formula/helmfile.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Helmfile < Formula
version "v0.138.7"
desc "Deploy Kubernetes Helm Charts."
homepage "https://github.com/meltwater/homebrew-fks"
url "https://github.com/meltwater/homebrew-fks/releases/download/helmfile-#{version}/helmfile-darwin-amd64.tar.gz"
sha256 "a54743494f719e86aedc6ca990f2951fb13fe230ab2257c322e703063cc99216"

def install
bin.install "helmfile"
end

# Homebrew requires tests.
test do
assert_match "helmfile version #{version}", shell_output("#{bin}/helmfile version", 0)
end
end
16 changes: 16 additions & 0 deletions Formula/sops.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Sops < Formula
version "3.6.1"
desc "Simple and flexible tool for managing secrets."
homepage "https://github.com/meltwater/homebrew-fks"
url "https://github.com/meltwater/homebrew-fks/releases/download/sops-v#{version}/sops-darwin-amd64.tar.gz"
sha256 "71b607504efedbde377c04da9af58c70742341435b438b89064c1674cf5fdb76"

def install
bin.install "sops"
end

# Homebrew requires tests.
test do
assert_match "sops #{version}", shell_output("#{bin}/sops --version", 0)
end
end
16 changes: 16 additions & 0 deletions Formula/vals.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Vals < Formula
version "v0.13.0"
desc "Helm-like configuration values loader with support for various sources."
homepage "https://github.com/meltwater/homebrew-fks"
url "https://github.com/meltwater/homebrew-fks/releases/download/vals-#{version}/vals-darwin-amd64.tar.gz"
sha256 "e92547c0d691240e51fee2d06ae4ee0549e2e72de290e7d03cee56e418476db2"

def install
bin.install "vals"
end

# Homebrew requires tests. vals doesn't provide a version command
test do
assert_match "vals", shell_output("#{bin}/vals", 0)
end
end
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Federico Hernandez
Copyright (c) 2021 Meltwater Engineering - Team Bravo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit adc9cf0

Please sign in to comment.