Update the script to add extra panels

manila_ui has enabled in local sub path

Change-Id: I1219a4c58355441944cc6cf44ab246c747c630f2
This commit is contained in:
okozachenko 2023-03-25 00:06:51 +11:00 committed by Vladimir Kozhukalov
parent 536eaed62d
commit f7fe0623e2
3 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Horizon
name: horizon
version: 0.3.6
version: 0.3.7
home: https://docs.openstack.org/horizon/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
sources:

View File

@ -62,6 +62,14 @@ function start () {
done
fi
unset PANEL_DIR
PANEL_DIR="${SITE_PACKAGES_ROOT}/{{ . }}/local/enabled"
if [ -d ${PANEL_DIR} ];then
for panel in `ls -1 ${PANEL_DIR}/_[1-9]*.py`
do
ln -s ${panel} ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/enabled/$(basename ${panel})
done
fi
unset PANEL_DIR
{{- end }}
# If the image has support for it, compile the translations

View File

@ -43,4 +43,5 @@ horizon:
- 0.3.4 Add readiness probe timeout
- 0.3.5 Replace node-role.kubernetes.io/master with control-plane
- 0.3.6 Fix container infra api version parsing
- 0.3.7 Update the script to add extra panels
...