2020-02-21 13:47:29 +01:00
|
|
|
{ depot, ... }:
|
2019-11-15 16:26:08 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
with depot;
|
2019-12-20 23:19:52 +01:00
|
|
|
|
|
|
|
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
|
|
|
''
|