Merge pull request #94164 from teozkr/feature/94163-istioctl-bundle-charts
istioctl: bundle charts
This commit is contained in:
commit
ae75863043
1 changed files with 19 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, go-bindata }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "istioctl";
|
||||
|
@ -12,6 +12,24 @@ buildGoModule rec {
|
|||
};
|
||||
vendorSha256 = "15l9z2a8p46jvmkl0vvm6s196mlics0qgmpm3yq3bn6cqnybdsij";
|
||||
|
||||
nativeBuildInputs = [ go-bindata ];
|
||||
|
||||
# Bundle charts
|
||||
preBuild = ''
|
||||
patchShebangs operator/scripts
|
||||
operator/scripts/create_assets_gen.sh
|
||||
'';
|
||||
|
||||
# Bundle release metadata
|
||||
buildFlagsArray = let
|
||||
attrs = [
|
||||
"istio.io/pkg/version.buildVersion=${version}"
|
||||
"istio.io/pkg/version.buildStatus=Nix"
|
||||
"istio.io/pkg/version.buildTag=${version}"
|
||||
"istio.io/pkg/version.buildHub=docker.io/istio"
|
||||
];
|
||||
in ["-ldflags=${lib.concatMapStringsSep " " (attr: "-X ${attr}") attrs}"];
|
||||
|
||||
subPackages = [ "istioctl/cmd/istioctl" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue