Check CERT_MANAGER_API if True or False

Follow-up on "Change 529818" to check variable value "True" or "False".

Change-Id: Id01ff344320983653672c9f8df12ae4038953352
Related-bug: 1734318
This commit is contained in:
Costin Gamenț 2018-02-19 10:30:42 +01:00
parent 0ae8b16a49
commit 5a34d7d830
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if [ -n "$TRUST_ID" ]; then
KUBE_CONTROLLER_MANAGER_ARGS="$KUBE_CONTROLLER_MANAGER_ARGS --cloud-config=/etc/kubernetes/kube_openstack_config --cloud-provider=openstack"
fi
if [ -n "$CERT_MANAGER_API" ]; then
if [ "$(echo $CERT_MANAGER_API | tr '[:upper:]' '[:lower:]')" = "true" ]; then
KUBE_CONTROLLER_MANAGER_ARGS="$KUBE_CONTROLLER_MANAGER_ARGS --cluster-signing-cert-file=$CERT_DIR/ca.crt --cluster-signing-key-file=$CERT_DIR/ca.key"
fi