Merge "Correct namespace in update-vfw-op-policy.sh" into beijing
authorAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Thu, 20 Sep 2018 14:03:34 +0000 (14:03 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 20 Sep 2018 14:03:34 +0000 (14:03 +0000)
kubernetes/policy/charts/drools/resources/scripts/update-vfw-op-policy.sh

index a6c054d..1145f04 100644 (file)
@@ -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