Container Infrastructure Management Service for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
magnum/magnum/drivers/common/templates/kubernetes/fragments/enable-cert-api-manager.sh

17 lines
385 B

#!/bin/sh
step="enable-cert-api-manager"
printf "Starting to run ${step}\n"
. /etc/sysconfig/heat-params
if [ "$(echo "${CERT_MANAGER_API}" | tr '[:upper:]' '[:lower:]')" = "true" ]; then
cert_dir=/etc/kubernetes/certs
echo -e "${CA_KEY}" > ${cert_dir}/ca.key
chown kube.kube ${cert_dir}/ca.key
chmod 400 ${cert_dir}/ca.key
fi
printf "Finished running ${step}\n"