Fix setup-hvves script 46/107946/1
authormrichomme <morgan.richomme@orange.com>
Wed, 20 May 2020 08:36:54 +0000 (10:36 +0200)
committermrichomme <morgan.richomme@orange.com>
Wed, 20 May 2020 08:39:11 +0000 (10:39 +0200)
the grep used in the kubectl command to retrieve the hv-ves collector
is too wide. It retrieves the right pod and the euphemeral test pod created
by the test job
as a consequence the HVESPOD is not correct and triggers an error

simple solution consists in putting a stronger constaint on the grep

Issue-ID: INT-1594

Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: Ib66dc5be7d1d6809432320047c9a0406e75378fd

setup-hvves.sh

index f81799b..ab9b4af 100755 (executable)
@@ -7,7 +7,7 @@
 NAMESPACE=${NAMESPACE:-onap}
 DIR=${DIR:-/tmp}
 
-HVVESPOD=$(kubectl -n $NAMESPACE get pods --no-headers=true -o custom-columns=:metadata.name | grep hv-ves)
+HVVESPOD=$(kubectl -n $NAMESPACE get pods --no-headers=true -o custom-columns=:metadata.name | grep dcae-hv-ves)
 
 
 generate_ca_key_cert () {