about summary refs log tree commit diff
path: root/overrides
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-20T20·55+0000
committerVincent Ambo <tazjin@google.com>2019-12-20T20·55+0000
commit495b6481c1ca6831382c743d8fb551f7109e68e3 (patch)
treeea85730b97a4dfaf2a3eebc440ae0cff954ee506 /overrides
parent49fd50bc8a71afd4c4053426e47051f05483c31c (diff)
feat(overrides/kontemplate): Automatically use primary-cluster.yaml r/242
Diffstat (limited to 'overrides')
-rw-r--r--overrides/kontemplate/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/overrides/kontemplate/default.nix b/overrides/kontemplate/default.nix
index 40f6b68b2962..74693c38377f 100644
--- a/overrides/kontemplate/default.nix
+++ b/overrides/kontemplate/default.nix
@@ -9,6 +9,11 @@ let master = pkgs.third_party.kontemplate.overrideAttrs(_: {
   };
 });
 in pkgs.third_party.writeShellScriptBin "kontemplate" ''
-  export PATH="${pkgs.tools.kms_pass}/bin:$PATH"
-  exec ${master}/bin/kontemplate $@
+  export PATH="${pkgs.ops.kms_pass}/bin:$PATH"
+
+  if [[ -z $1 ]]; then
+    exec ${master}/bin/kontemplate
+  fi
+
+  exec ${master}/bin/kontemplate $1 ${./../..}/ops/infra/kubernetes/primary-cluster.yaml ''${@:2}
 ''