about summary refs log tree commit diff
path: root/overrides/kontemplate/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overrides/kontemplate/default.nix')
-rw-r--r--overrides/kontemplate/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/overrides/kontemplate/default.nix b/overrides/kontemplate/default.nix
new file mode 100644
index 000000000000..6147d1f465ee
--- /dev/null
+++ b/overrides/kontemplate/default.nix
@@ -0,0 +1,13 @@
+{ 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}
+''