vcluster: 0.17.0 -> 0.18.1

Release: https://github.com/loft-sh/vcluster/releases/tag/v0.18.1

Changelog: https://github.com/loft-sh/vcluster/compare/v0.17.0...v0.18.1

* Add version test
* Add fish shell completion
This commit is contained in:
superherointj
2023-12-16 08:31:34 -03:00
parent 5014727e62
commit ccbc56db13
@@ -1,14 +1,14 @@
{ lib, go, buildGoModule, fetchFromGitHub, installShellFiles }:
{ lib, go, buildGoModule, fetchFromGitHub, installShellFiles, testers, vcluster }:
buildGoModule rec {
pname = "vcluster";
version = "0.17.0";
version = "0.18.1";
src = fetchFromGitHub {
owner = "loft-sh";
repo = pname;
rev = "v${version}";
hash = "sha256-xmSp3cNqNv48gBWpt0Pnvl3l5gIyV1oPNGrB58X+OVU=";
hash = "sha256-TJjMB7x8MOlr3GexsnOZBFPJovVkf4ByRn1aGprvZFQ=";
};
vendorHash = null;
@@ -36,9 +36,15 @@ buildGoModule rec {
postInstall = ''
installShellCompletion --cmd vcluster \
--bash <($out/bin/vcluster completion bash) \
--fish <($out/bin/vcluster completion fish) \
--zsh <($out/bin/vcluster completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = vcluster;
command = "vcluster --version";
};
meta = with lib; {
description = "Create fully functional virtual Kubernetes clusters";
downloadPage = "https://github.com/loft-sh/vcluster";