2019-12-09 05:27:40 +01:00
|
|
|
{ pkgs, ... }:
|
2019-11-15 16:26:08 +01:00
|
|
|
|
2019-12-20 23:19:52 +01:00
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
third_party.writeShellScriptBin "kontemplate" ''
|
|
|
|
export PATH="${ops.kms_pass}/bin:$PATH"
|
2019-12-20 21:55:25 +01:00
|
|
|
|
|
|
|
if [[ -z $1 ]]; then
|
2019-12-20 23:19:52 +01:00
|
|
|
exec ${ops.kontemplate}/bin/kontemplate
|
2019-12-20 21:55:25 +01:00
|
|
|
fi
|
|
|
|
|
2019-12-20 23:19:52 +01:00
|
|
|
exec ${ops.kontemplate}/bin/kontemplate $1 ${./../..}/ops/infra/kubernetes/primary-cluster.yaml ''${@:2}
|
2019-11-15 16:26:08 +01:00
|
|
|
''
|