From e661ef5b90f40ef61a1f8c0030abcf597c2dcbc6 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 13 Oct 2017 15:55:52 +0200 Subject: Doc xds-exec config priority order Signed-off-by: Sebastien Douheret --- docs/part-2/3_xds-exec.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/part-2/3_xds-exec.md b/docs/part-2/3_xds-exec.md index 203eb31..504cf01 100644 --- a/docs/part-2/3_xds-exec.md +++ b/docs/part-2/3_xds-exec.md @@ -18,10 +18,11 @@ Configuration through environment variables may also be defined in a file that will be sourced on `xds-exec` start-up. Use `--config|-c` option or set `XDS_CONFIG` environment variable to specify the config filename. -Order between options, config file settings and environment variables is : +So configuration is driven either by environment variables or by command line +options or using a config file knowning that the following priority order is used: -1. use option value (for example `-id`) -1. else use variable `XDS_xxx` (for example `XDS_PROJECT_ID`) when a config file is specified with `--config|-c` option. +1. use option value (for example use project ID set by `--id` option), +1. else use variable `XDS_xxx` (for example `XDS_PROJECT_ID` variable) when a config file is specified with `--config|-c` option, 1. else use `XDS_xxx` (for example `XDS_PROJECT_ID`) environment variable -- cgit