Merge pull request #173841 from wahjava/update-flannel

cni-flannel-plugin: 1.0.0 -> 1.1.0
This commit is contained in:
Bobby Rong 2022-05-24 21:29:14 +08:00 committed by GitHub
commit 21e908dbeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,23 @@
buildGoModule rec {
pname = "cni-plugin-flannel";
version = "1.0.0";
version = "1.1.0";
src = fetchFromGitHub {
owner = "flannel-io";
repo = "cni-plugin";
rev = "v${version}";
sha256 = "sha256-zWxw4LZIlkT88yGTnxdupq7cUSacNRxPzzp01O9USDw=";
sha256 = "sha256-Rq1hVZazeF39YGiuuWC8adff3AhPsSLnnfVpGCaMqgc=";
};
vendorSha256 = "sha256-zteMlrvRTVxOFlBy+z/qfiSii8+c8PMapwIsdbN+Aig=";
vendorSha256 = "sha256-ddwNJZzdyO/wEdy0C7Z8IoOWXY4jggcgIHxmRUGGf9s=";
ldflags = [
"-s" "-w"
"-X main.Version=${version}"
"-X main.Commit=${version}"
"-X main.Program=flannel"
];
postInstall = ''
mv $out/bin/cni-plugin $out/bin/flannel
@ -22,7 +29,7 @@ buildGoModule rec {
installCheckPhase = ''
runHook preInstallCheck
$out/bin/flannel 2>&1 | fgrep -q v$version
$out/bin/flannel 2>&1 | fgrep -q $version
runHook postInstallCheck
'';