From f7fe0623e2fb2740a5ac9f4a127cf4ada53da525 Mon Sep 17 00:00:00 2001 From: okozachenko Date: Sat, 25 Mar 2023 00:06:51 +1100 Subject: [PATCH] Update the script to add extra panels manila_ui has enabled in local sub path Change-Id: I1219a4c58355441944cc6cf44ab246c747c630f2 --- horizon/Chart.yaml | 2 +- horizon/templates/bin/_horizon.sh.tpl | 8 ++++++++ releasenotes/notes/horizon.yaml | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/horizon/Chart.yaml b/horizon/Chart.yaml index 3fbe3985d2..c4673e8c51 100644 --- a/horizon/Chart.yaml +++ b/horizon/Chart.yaml @@ -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: diff --git a/horizon/templates/bin/_horizon.sh.tpl b/horizon/templates/bin/_horizon.sh.tpl index 1fedecd8be..8d2b0be2d5 100644 --- a/horizon/templates/bin/_horizon.sh.tpl +++ b/horizon/templates/bin/_horizon.sh.tpl @@ -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 diff --git a/releasenotes/notes/horizon.yaml b/releasenotes/notes/horizon.yaml index e282fbc5ef..d239cac3a3 100644 --- a/releasenotes/notes/horizon.yaml +++ b/releasenotes/notes/horizon.yaml @@ -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 ...