about summary refs log tree commit diff
path: root/overrides/kontemplate
diff options
context:
space:
mode:
Diffstat (limited to 'overrides/kontemplate')
-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..52da1ba32c5c
--- /dev/null
+++ b/overrides/kontemplate/default.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+
+with pkgs;
+
+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}
+''