Don't start any Typha instances if not using Calico
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
|
||||
@@ -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}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user