From fcc73b95d0adb9c5b1dfb9dbfa11b903b5db8cac Mon Sep 17 00:00:00 2001 From: timothysmith0609 Date: Fri, 22 Feb 2019 12:21:17 -0500 Subject: [PATCH] README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 88ee54f66..0ea084249 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ offical compatibility chart below. ## Usage -`kubernetes-deploy ` +`kubernetes-deploy [OPTIONS] [filenames...]` *Environment variables:* @@ -116,11 +116,12 @@ offical compatibility chart below. Refer to `kubernetes-deploy --help` for the authoritative set of options. -- `--template-dir=DIR`: Used to set the deploy directory. Set `$ENVIRONMENT` instead to use `config/deploy/$ENVIRONMENT`. +- `--template-dir=DIR`: Used to set the deploy directory. Set `$ENVIRONMENT` instead to use `config/deploy/$ENVIRONMENT`. You can set multiple template directories by repeating the `--template-dir` flag. - `--bindings=BINDINGS`: Makes additional variables available to your ERB templates. For example, `kubernetes-deploy my-app cluster1 --bindings=color=blue,size=large` will expose `color` and `size`. - `--no-prune`: Skips pruning of resources that are no longer in your Kubernetes template set. Not recommended, as it allows your namespace to accumulate cruft that is not reflected in your deploy directory. - `--max-watch-seconds=seconds`: Raise a timeout error if it takes longer than _seconds_ for any resource to deploy. +- `kubernetes-deploy` also supports reading from STDIN. If combined with the `[filenames...]` option, you must specify `-` in the filename list as well. Example: `cat templates_from_stdin/*.yml | kubernetes-deploy ns ctx --template-dir=template_dir another_template.yml -`. Ensure your yamls are separated with `---` when using this feature. ### Using templates and variables