about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/clusterctl
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2022-12-01 12:47:31 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2022-12-01 13:18:00 +1000
commit8637768751cd22b7af0f40ad03d41ae22fd72d6a (patch)
tree89fc583bde05cccac2916750186d889f93ef80e9 /pkgs/applications/networking/cluster/clusterctl
parent27a7f95fc819d965f14b826a0bf451a35cf5f049 (diff)
clusterctl: 1.2.6 -> 1.2.7
https://github.com/kubernetes-sigs/cluster-api/releases/tag/v1.2.7
Diffstat (limited to 'pkgs/applications/networking/cluster/clusterctl')
-rw-r--r--pkgs/applications/networking/cluster/clusterctl/default.nix14
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/applications/networking/cluster/clusterctl/default.nix b/pkgs/applications/networking/cluster/clusterctl/default.nix
index 4aceec6aefaef..2866c298c24eb 100644
--- a/pkgs/applications/networking/cluster/clusterctl/default.nix
+++ b/pkgs/applications/networking/cluster/clusterctl/default.nix
@@ -1,17 +1,17 @@
-{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, clusterctl }:
 
 buildGoModule rec {
   pname = "clusterctl";
-  version = "1.2.6";
+  version = "1.2.7";
 
   src = fetchFromGitHub {
     owner = "kubernetes-sigs";
     repo = "cluster-api";
     rev = "v${version}";
-    sha256 = "sha256-32Y4HQqODRlYLqDLUOqDwOf4Yp2xpAOPUgz8gU3TaEE=";
+    sha256 = "sha256-h8VZCCl28Vd2VB+enLY28t8rNbzdZo3Y4ybElNAkvKU=";
   };
 
-  vendorSha256 = "sha256-jvadtm8NprVwNf4+GaaANK1u4Y4ccbsTCZxQk21GW7c=";
+  vendorSha256 = "sha256-hhs/q0x5Qd7S18jX4SPVFPo+fsDE9snJVkiqKD+Qp74=";
 
   subPackages = [ "cmd/clusterctl" ];
 
@@ -32,6 +32,12 @@ buildGoModule rec {
       --zsh <($out/bin/clusterctl completion zsh)
   '';
 
+  passthru.tests.version = testers.testVersion {
+    package = clusterctl;
+    command = "HOME=$TMPDIR clusterctl version";
+    version = "v${version}";
+  };
+
   meta = with lib; {
     description = "Kubernetes cluster API tool";
     homepage = "https://cluster-api.sigs.k8s.io/";