From: Abdelmuhaimen Seaudi Date: Sat, 8 Sep 2018 05:36:20 +0000 (+0000) Subject: Correct namespace in update-vfw-op-policy.sh X-Git-Tag: 3.0.0-ONAP~278^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3c23ce08aab29a10455b4c383d1c4ed7abf7dfb0;p=oom.git Correct namespace in update-vfw-op-policy.sh The namespace in update-vfw-op-policy.sh should be corrected to be "onap" instead of "onap-policy". Issue-ID: POLICY-1098 Change-Id: Ib1b1ff616645635b2779b8ee6b9aab05b01a76be Signed-off-by: Abdelmuhaimen Seaudi --- diff --git a/kubernetes/policy/charts/drools/resources/scripts/update-vfw-op-policy.sh b/kubernetes/policy/charts/drools/resources/scripts/update-vfw-op-policy.sh index c44c8f0f52..e85449a6da 100644 --- a/kubernetes/policy/charts/drools/resources/scripts/update-vfw-op-policy.sh +++ b/kubernetes/policy/charts/drools/resources/scripts/update-vfw-op-policy.sh @@ -84,8 +84,8 @@ echo "Restarting PDP-D .." echo echo -POD=$(kubectl --namespace onap-policy get pods | sed 's/ .*//'| grep drools) -kubectl --namespace onap-policy exec -it ${POD} -- bash -c "source /opt/app/policy/etc/profile.d/env.sh && policy stop && sleep 5 && policy start" +POD=$(kubectl --namespace {{ include "common.namespace" . }} get pods | sed 's/ .*//'| grep drools) +kubectl --namespace {{ include "common.namespace" . }} exec -it ${POD} -- bash -c "source /opt/app/policy/etc/profile.d/env.sh && policy stop && sleep 5 && policy start" sleep 20