From 12664474e8ceb39dfdf9ccaed2d9585677fd73a9 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Fri, 9 Nov 2018 13:17:54 -0500 Subject: [PATCH] Restarting containerized horizon with baremetal horizon This commit modifies the baremetal horizon init script to kill the horizon pod so it restarts. This gives it the chance to pick up any new branding files when they're installed. Change-Id: Ic122bb359e00d76ab967b2ddcdc278c8cbfde818 Story: 2003909 Task: 27080 Signed-off-by: Tyler Smith --- openstack/python-horizon/centos/files/horizon.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openstack/python-horizon/centos/files/horizon.init b/openstack/python-horizon/centos/files/horizon.init index 3b261b94..b0c5ad21 100755 --- a/openstack/python-horizon/centos/files/horizon.init +++ b/openstack/python-horizon/centos/files/horizon.init @@ -99,6 +99,10 @@ start() fi fi fi + + # As part of starting horizon we should kill containerized horizon so that it + # will pickup branding changes + kubectl --kubeconfig=/etc/kubernetes/admin.conf delete pods -n openstack -l application=horizon 1>/dev/null } stop()