vcluster: init at 0.5.3

This commit is contained in:
Peter Romfeld 2022-01-21 11:45:34 +02:00
parent f6722c80d4
commit 4ddb05e51a
No known key found for this signature in database
GPG Key ID: 9766DC19A01B735D
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib, buildGo117Module, fetchFromGitHub, installShellFiles }:
buildGo117Module rec {
pname = "vcluster";
version = "0.5.3";
src = fetchFromGitHub {
owner = "loft-sh";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+rLDRVfB6wZ1wYoLE2wwRxzS6GmI6KYtOKdXZd+LnnU=";
};
vendorSha256 = null;
subPackages = [ "cmd/vclusterctl" ];
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
# Test is disabled because e2e tests expect k8s.
doCheck = false;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -Dm755 "$GOPATH/bin/vclusterctl" -T $out/bin/vcluster
runHook postInstall
'';
postInstall = ''
installShellCompletion --cmd vcluster \
--bash <($out/bin/vcluster completion bash) \
--zsh <($out/bin/vcluster completion zsh)
'';
meta = with lib; {
description = "Create fully functional virtual Kubernetes clusters";
downloadPage = "https://github.com/loft-sh/vcluster";
homepage = "https://www.vcluster.com/";
license = licenses.asl20;
maintainers = with maintainers; [ peterromfeldhk ];
};
}

View File

@ -33660,6 +33660,8 @@ with pkgs;
ib-controller = callPackage ../applications/office/ib/controller { jdk=oraclejdk8; };
vcluster = callPackage ../applications/networking/cluster/vcluster {};
vnote = libsForQt5.callPackage ../applications/office/vnote { };
ssh-audit = callPackage ../tools/security/ssh-audit { };