nixos: kubernetes fixes

* Fix reference CNI plugins
  * The plugins were split out of the upstream cni repo around version
    0.6.0

* Fix RBAC and DNS tests
  * Fix broken apiVersion fields
  * Change plugin linking to look in ${package}/bin rather than
    ${package.plugins}

* Initial work towards a working e2e test
  * Test still fails, but at least the expression evaluates now

Continues @srhb's work in #37199

Fixes #37199
This commit is contained in:
Charles Strahan
2018-03-30 17:33:45 -04:00
parent 5de6ee22d1
commit 709b6f664e
8 changed files with 95 additions and 28 deletions
@@ -13,17 +13,14 @@ stdenv.mkDerivation rec {
buildInputs = [ go ];
outputs = ["out" "plugins"];
buildPhase = ''
patchShebangs build.sh
./build.sh
'';
installPhase = ''
mkdir -p $out/bin $plugins
mkdir -p $out/bin
mv bin/cnitool $out/bin
mv bin/* $plugins/
'';
meta = with stdenv.lib; {