about summary refs log blame commit diff
path: root/overrides/kontemplate/default.nix
blob: 6147d1f465eef7ada695aae05a8d0e3100b1b570 (plain) (tree)
1
2
3
4
5
6
7
8
9
               
 
           


                                                

                      
                                           

    
                                                                                                          
  
{ depot, ... }:

with depot;

third_party.writeShellScriptBin "kontemplate" ''
  export PATH="${ops.kms_pass}/bin:$PATH"

  if [[ -z $1 ]]; then
    exec ${ops.kontemplate}/bin/kontemplate
  fi

  exec ${ops.kontemplate}/bin/kontemplate $1 ${./../..}/ops/infra/kubernetes/primary-cluster.yaml ''${@:2}
''