Skip to content

Instantly share code, notes, and snippets.

@johanot
Created November 4, 2018 19:51
Show Gist options
  • Save johanot/0361d2150dae598c7d7d3a14eaf96e91 to your computer and use it in GitHub Desktop.
Save johanot/0361d2150dae598c7d7d3a14eaf96e91 to your computer and use it in GitHub Desktop.
{ 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