From 5517e62c86cde58b2392c04799cfb395803e1162 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski Date: Mon, 11 Jan 2021 20:34:24 +0100 Subject: [PATCH] Fix and document environment variable KUBE_MASTERS (#7127) This variable was added as KUBE_MASTERS_MASTERS. That's probably a typo. Remove the redundant `_MASTERS` suffix. Also, document the variable in the help message. --- contrib/inventory_builder/inventory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/inventory_builder/inventory.py b/contrib/inventory_builder/inventory.py index e0900e694..0563bda74 100644 --- a/contrib/inventory_builder/inventory.py +++ b/contrib/inventory_builder/inventory.py @@ -63,7 +63,7 @@ def get_var_as_bool(name, default): CONFIG_FILE = os.environ.get("CONFIG_FILE", "./inventory/sample/hosts.yaml") -KUBE_MASTERS = int(os.environ.get("KUBE_MASTERS_MASTERS", 2)) +KUBE_MASTERS = int(os.environ.get("KUBE_MASTERS", 2)) # Reconfigures cluster distribution at scale SCALE_THRESHOLD = int(os.environ.get("SCALE_THRESHOLD", 50)) MASSIVE_SCALE_THRESHOLD = int(os.environ.get("MASSIVE_SCALE_THRESHOLD", 200)) @@ -402,6 +402,7 @@ Configurable env vars: DEBUG Enable debug printing. Default: True CONFIG_FILE File to write config to Default: ./inventory/sample/hosts.yaml HOST_PREFIX Host prefix for generated hosts. Default: node +KUBE_MASTERS Set the number of kube-masters. Default: 2 SCALE_THRESHOLD Separate ETCD role if # of nodes >= 50 MASSIVE_SCALE_THRESHOLD Separate K8s master and ETCD if # of nodes >= 200 ''' # noqa