feat(overrides/kontemplate): Automatically use primary-cluster.yaml
This commit is contained in:
parent
49fd50bc8a
commit
495b6481c1
2 changed files with 8 additions and 3 deletions
|
@ -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}
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue