Merge pull request #189670 from superherointj/package-kubeone-1.5.0
This commit is contained in:
commit
822b091b47
1 changed files with 13 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
|
, kubeone
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
@ -17,6 +19,12 @@ buildGoModule rec {
|
||||||
|
|
||||||
vendorSha256 = "sha256-w/uLR7wi28Ub7Nouxxg39NlD1OzyIE2oEP4D88Xbwu0=";
|
vendorSha256 = "sha256-w/uLR7wi28Ub7Nouxxg39NlD1OzyIE2oEP4D88Xbwu0=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s -w"
|
||||||
|
"-X k8c.io/kubeone/pkg/cmd.version=${version}"
|
||||||
|
"-X k8c.io/kubeone/pkg/cmd.date=unknown"
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
@ -27,6 +35,11 @@ buildGoModule rec {
|
||||||
--zsh <($out/bin/kubeone completion zsh)
|
--zsh <($out/bin/kubeone completion zsh)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests.version = testers.testVersion {
|
||||||
|
package = kubeone;
|
||||||
|
command = "kubeone version";
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Automate cluster operations on all your cloud, on-prem, edge, and IoT environments.";
|
description = "Automate cluster operations on all your cloud, on-prem, edge, and IoT environments.";
|
||||||
homepage = "https://kubeone.io/";
|
homepage = "https://kubeone.io/";
|
||||||
|
|
Loading…
Reference in a new issue