Merge pull request #172695 from haslersn/virtctl-v0.53.0

kubevirt: 0.52.0 -> 0.53.0
This commit is contained in:
Sandro 2022-05-13 14:25:04 +02:00 committed by GitHub
commit a4dd566f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,6 @@
{ buildGoModule
, fetchFromGitHub
, installShellFiles
, lib
, testers
, kubevirt
@ -7,13 +8,13 @@
buildGoModule rec {
pname = "kubevirt";
version = "0.52.0";
version = "0.53.0";
src = fetchFromGitHub {
owner = "kubevirt";
repo = "kubevirt";
rev = "v${version}";
sha256 = "0ldc13nypbk3r9ihbdfibpyvzyzz4m68zzb7g6cq551ks9qdiyma";
sha256 = "11581mp4fjqmpy3zn9mjq651ijsxmffz9vpvbn4b5gcs9xzgr1fw";
};
vendorSha256 = null;
@ -28,6 +29,15 @@ buildGoModule rec {
"-X kubevirt.io/client-go/version.gitVersion=v${version}"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd virtctl \
--bash <($out/bin/virtctl completion bash) \
--fish <($out/bin/virtctl completion fish) \
--zsh <($out/bin/virtctl completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = kubevirt;
command = "virtctl version --client";

View File

@ -1153,6 +1153,8 @@ with pkgs;
ksnip = libsForQt5.callPackage ../tools/misc/ksnip { };
kubevirt = callPackage ../tools/virtualization/kubevirt { };
license-generator = callPackage ../tools/misc/license-generator { };
linux-router = callPackage ../tools/networking/linux-router { };
@ -1197,8 +1199,6 @@ with pkgs;
ventoy-bin = callPackage ../tools/cd-dvd/ventoy-bin { };
kubevirt = callPackage ../tools/virtualization/kubevirt { };
vopono = callPackage ../tools/networking/vopono { };
winbox = callPackage ../tools/admin/winbox {