Don't start any Typha instances if not using Calico

This commit is contained in:
Casey Davenport 2017-06-15 17:09:17 -07:00
parent dbc5d91bf0
commit 199ecdbbdd
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,10 @@ function get-calico-typha-replicas {
if [[ "${NUM_NODES}" -gt "500" ]]; then
typha_count=5
fi
if [[ "${NETWORK_POLICY_PROVIDER:-}" != "calico" ]]; then
# We're not configured to use Calico, so don't start any Typhas.
typha_count=0
fi
echo "${typha_count}"
}

View File

@ -64,6 +64,10 @@ function get-calico-typha-replicas {
if [[ "${NUM_NODES}" -gt "500" ]]; then
typha_count=5
fi
if [[ "${NETWORK_POLICY_PROVIDER:-}" != "calico" ]]; then
# We're not configured to use Calico, so don't start any Typhas.
typha_count=0
fi
echo "${typha_count}"
}