Created
November 4, 2018 19:51
-
-
Save johanot/0361d2150dae598c7d7d3a14eaf96e91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import ../../common/nixpkgs.nix { version = "18.09"; } }: | |
with pkgs; | |
stdenv.mkDerivation { | |
name = "kubernixos"; | |
buildInputs = | |
let | |
kubernixos = writeShellScriptBin "kubernixos" '' | |
DEPLOY="$1" | |
shift | |
${nix}/bin/nix eval --arg deployment "$DEPLOY" -f kubernixos.nix manifests --json | \ | |
${kubectl}/bin/kubectl apply -l reconciler=kubernixos --prune -f - $@ | |
''; | |
in | |
[ | |
kubernixos | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment