fluxcd: init at 0.5.0

This is flux v2. There is also fluxctl (flux v1). v1 is in maintenance
mode, and it will be deprecated at some point, but some people may still
depend on v1.
This commit is contained in:
José Luis Lafuente 2020-12-09 20:45:35 +01:00
parent 296793637b
commit e10a0ae16e
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "fluxcd";
version = "0.5.0";
src = fetchFromGitHub {
owner = "fluxcd";
repo = "flux2";
rev = "v${version}";
sha256 = "125im8br7x8djd6zagvikpc02k55pxbd97rjj3g2frj9plbryh8n";
};
vendorSha256 = "0f818a0z71nl061db93iqb87njx66vbrra1zh92warbx8djdsr7k";
nativeBuildInputs = [ installShellFiles ];
doCheck = false;
subPackages = [ "cmd/flux" ];
buildFlagsArray = [ "-ldflags=-s -w -X main.VERSION=${version}" ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/flux completion $shell > flux.$shell
installShellCompletion flux.$shell
done
'';
meta = with stdenv.lib; {
description = "Open and extensible continuous delivery solution for Kubernetes";
longDescription = ''
Flux is a tool for keeping Kubernetes clusters in sync
with sources of configuration (like Git repositories), and automating
updates to configuration when there is new code to deploy.
'';
homepage = "https://fluxcd.io";
license = licenses.asl20;
maintainers = with maintainers; [ jlesquembre ];
platforms = platforms.unix;
};
}

View file

@ -22199,6 +22199,8 @@ in
fluxctl = callPackage ../applications/networking/cluster/fluxctl { };
fluxcd = callPackage ../applications/networking/cluster/fluxcd { };
linkerd = callPackage ../applications/networking/cluster/linkerd { };
kubernetes-helm = callPackage ../applications/networking/cluster/helm { };