2021-05-27 03:28:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
2022-09-04 00:07:09 +00:00
|
|
|
, kubeone
|
|
|
|
, testers
|
2021-05-27 03:28:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubeone";
|
2023-02-01 15:44:01 +00:00
|
|
|
version = "1.5.6";
|
2021-05-27 03:28:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubermatic";
|
|
|
|
repo = "kubeone";
|
|
|
|
rev = "v${version}";
|
2023-02-01 15:44:01 +00:00
|
|
|
hash = "sha256-u0ievi2Zj5kerTQWhNPkT3HFdLYVwHOigkvWk6Zc3go=";
|
2021-05-27 03:28:31 +00:00
|
|
|
};
|
|
|
|
|
2022-12-13 16:04:53 +00:00
|
|
|
vendorHash = "sha256-Y4eivDchnN2rtQWjFY3cFiJXRfj48UfVUKM/OLuWXGA=";
|
2021-05-27 03:28:31 +00:00
|
|
|
|
2022-09-04 00:07:09 +00:00
|
|
|
ldflags = [
|
2022-12-13 16:04:53 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
2022-09-04 00:07:09 +00:00
|
|
|
"-X k8c.io/kubeone/pkg/cmd.version=${version}"
|
|
|
|
"-X k8c.io/kubeone/pkg/cmd.date=unknown"
|
|
|
|
];
|
|
|
|
|
2021-05-27 03:28:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd kubeone \
|
|
|
|
--bash <($out/bin/kubeone completion bash) \
|
|
|
|
--zsh <($out/bin/kubeone completion zsh)
|
|
|
|
'';
|
|
|
|
|
2022-09-04 00:07:09 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = kubeone;
|
|
|
|
command = "kubeone version";
|
|
|
|
};
|
|
|
|
|
2022-12-13 16:04:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Automate cluster operations on all your cloud, on-prem, edge, and IoT environments";
|
2021-05-27 03:28:31 +00:00
|
|
|
homepage = "https://kubeone.io/";
|
2022-12-13 16:04:53 +00:00
|
|
|
changelog = "https://github.com/kubermatic/kubeone/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lblasc ];
|
2021-05-27 03:28:31 +00:00
|
|
|
};
|
|
|
|
}
|