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.
 
 
 
 
 

18 lines
385 B

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