From 0b2d78c0ead615ef624c76eacc1fbeb1cca2c60d Mon Sep 17 00:00:00 2001 From: Simone Sciarrati Date: Thu, 18 Mar 2021 10:47:43 +0100 Subject: [PATCH] Add sops, helmfile, helm plugins, vals --- Formula/helm3.rb | 9 ++++++--- Formula/helmfile.rb | 16 ++++++++++++++++ Formula/sops.rb | 16 ++++++++++++++++ Formula/vals.rb | 16 ++++++++++++++++ LICENSE | 2 +- 5 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 Formula/helmfile.rb create mode 100644 Formula/sops.rb create mode 100644 Formula/vals.rb diff --git a/Formula/helm3.rb b/Formula/helm3.rb index 9278256..64740ff 100644 --- a/Formula/helm3.rb +++ b/Formula/helm3.rb @@ -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. diff --git a/Formula/helmfile.rb b/Formula/helmfile.rb new file mode 100644 index 0000000..269a93a --- /dev/null +++ b/Formula/helmfile.rb @@ -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 diff --git a/Formula/sops.rb b/Formula/sops.rb new file mode 100644 index 0000000..d4118b8 --- /dev/null +++ b/Formula/sops.rb @@ -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 diff --git a/Formula/vals.rb b/Formula/vals.rb new file mode 100644 index 0000000..816107e --- /dev/null +++ b/Formula/vals.rb @@ -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 diff --git a/LICENSE b/LICENSE index 8220a9d..86dd82a 100644 --- a/LICENSE +++ b/LICENSE @@ -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