Merge "Add a secret for magnum"

This commit is contained in:
Zuul 2020-07-08 02:32:59 +00:00 committed by Gerrit Code Review
commit d0928ca4df
2 changed files with 6 additions and 5 deletions

View File

@ -255,8 +255,10 @@ function create_magnum_cache_dir {
# init_magnum() - Initialize databases, etc.
function init_magnum {
kubectl create secret generic magnum-config --from-file=/etc/magnum/magnum.conf --from-file=/etc/magnum/api-paste.ini -n openstack
# NOTE: Permissions here are bad but it's temporary so we don't care as much.
sudo chmod -Rv 777 /etc/heat
sudo chmod -Rv 777 /etc/magnum
# Only do this step once on the API node for an entire cluster.
if is_service_enabled $DATABASE_BACKENDS; then
# (Re)create magnum database

View File

@ -95,9 +95,8 @@ spec:
mountPath: /etc/uwsgi
volumes:
- name: config
hostPath:
path: {{ spec['configDir'] }}
type: Directory
secret:
secretName: magnum-config
- name: uwsgi-config
configMap:
defaultMode: 420