nixpkgs/pkgs/applications/networking/cluster/kubernetes/default.nix
R. RyanTM 7f1dcab277 kubernetes: 1.10.4 -> 1.10.5 (#42498)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/kubernetes/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/.kube-addons-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kube-addons had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/conversion-gen had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/deepcopy-gen had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/defaulter-gen had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/e2e.test had a zero exit code or showed the expected version
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/gendocs passed the binary check.
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/genkubedocs had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/genman had a zero exit code or showed the expected version
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/genyaml passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/go-bindata passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kube-apiserver passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kube-controller-manager passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kube-proxy passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kube-scheduler passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kubeadm passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kubectl passed the binary check.
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/kubelet passed the binary check.
- Warning: no invocation of /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/openapi-gen had a zero exit code or showed the expected version
- /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5/bin/teststale passed the binary check.
- 11 of 20 passed binary check by having a zero exit code.
- 5 of 20 passed binary check by having the new version present in output.
- found 1.10.5 with grep in /nix/store/wvgp2pcmxsvzxvbl0a4w0qmwgkw2nifq-kubernetes-1.10.5
- directory tree listing: https://gist.github.com/f66eb35eb29445af12d98c6605753493
- du listing: https://gist.github.com/30b38d2640ef11a2252df16c7bfd6063
2018-06-24 20:16:38 +02:00

77 lines
2.3 KiB
Nix

{ stdenv, lib, fetchFromGitHub, fetchpatch, removeReferencesTo, which, go_1_9, go-bindata, makeWrapper, rsync
, iptables, coreutils
, components ? [
"cmd/kubeadm"
"cmd/kubectl"
"cmd/kubelet"
"cmd/kube-apiserver"
"cmd/kube-controller-manager"
"cmd/kube-proxy"
"cmd/kube-scheduler"
"test/e2e/e2e.test"
]
}:
with lib;
stdenv.mkDerivation rec {
name = "kubernetes-${version}";
version = "1.10.5";
src = fetchFromGitHub {
owner = "kubernetes";
repo = "kubernetes";
rev = "v${version}";
sha256 = "1k6ayb43l68l0qw31cc4k1pwvm8aks3l2xm0gdxdxbbww1mnzix2";
};
# Build using golang v1.9 in accordance with https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.10.md#external-dependencies
buildInputs = [ removeReferencesTo makeWrapper which go_1_9 rsync go-bindata ];
outputs = ["out" "man" "pause"];
postPatch = ''
substituteInPlace "hack/lib/golang.sh" --replace "_cgo" ""
substituteInPlace "hack/generate-docs.sh" --replace "make" "make SHELL=${stdenv.shell}"
# hack/update-munge-docs.sh only performs some tests on the documentation.
# They broke building k8s; disabled for now.
echo "true" > "hack/update-munge-docs.sh"
patchShebangs ./hack
'';
WHAT="--use_go_build ${concatStringsSep " " components}";
postBuild = ''
./hack/generate-docs.sh
(cd build/pause && cc pause.c -o pause)
'';
installPhase = ''
mkdir -p "$out/bin" "$out/share/bash-completion/completions" "$out/share/zsh/site-functions" "$man/share/man" "$pause/bin"
cp _output/local/go/bin/* "$out/bin/"
cp build/pause/pause "$pause/bin/pause"
cp -R docs/man/man1 "$man/share/man"
cp cluster/addons/addon-manager/kube-addons.sh $out/bin/kube-addons
patchShebangs $out/bin/kube-addons
wrapProgram $out/bin/kube-addons --set "KUBECTL_BIN" "$out/bin/kubectl"
$out/bin/kubectl completion bash > $out/share/bash-completion/completions/kubectl
$out/bin/kubectl completion zsh > $out/share/zsh/site-functions/_kubectl
'';
preFixup = ''
find $out/bin $pause/bin -type f -exec remove-references-to -t ${go_1_9} '{}' +
'';
meta = {
description = "Production-Grade Container Scheduling and Management";
license = licenses.asl20;
homepage = https://kubernetes.io;
maintainers = with maintainers; [johanot offline];
platforms = platforms.unix;
};
}