2021-05-27 04:28:31 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubeone";
|
2022-02-18 13:05:20 +00:00
|
|
|
version = "1.4.0";
|
2021-05-27 04:28:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubermatic";
|
|
|
|
repo = "kubeone";
|
|
|
|
rev = "v${version}";
|
2022-02-18 13:05:20 +00:00
|
|
|
sha256 = "sha256-uij5daVHKIfxx+8UTmU/HKSbf/RTRFuO8mCQdsC80qI=";
|
2021-05-27 04:28:31 +01:00
|
|
|
};
|
|
|
|
|
2022-02-18 13:05:20 +00:00
|
|
|
vendorSha256 = "sha256-kI5i1us3Ooh603HOz9Y+HlfPUy/1J8z89/jvKEenpLw=";
|
2021-05-27 04:28:31 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd kubeone \
|
|
|
|
--bash <($out/bin/kubeone completion bash) \
|
|
|
|
--zsh <($out/bin/kubeone completion zsh)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Automate cluster operations on all your cloud, on-prem, edge, and IoT environments.";
|
|
|
|
homepage = "https://kubeone.io/";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ lblasc ];
|
|
|
|
};
|
|
|
|
}
|