Adding stackName to waitForAdapters keyword config
Change-Id: Ifbb023a177daf648aef8f4c9ad632fb502b7e94c
diff --git a/vars/waitForAdapters.groovy b/vars/waitForAdapters.groovy
index 661e089..37620c3 100644
--- a/vars/waitForAdapters.groovy
+++ b/vars/waitForAdapters.groovy
@@ -2,6 +2,7 @@
def defaultConfig = [
volthaNamespace: "voltha",
+ stackName: "voltha",
adaptersToWait: 2,
]
@@ -22,7 +23,7 @@
// guarantee that at least the specified number of adapters are registered with VOLTHA before proceeding
sh """
set +x
- _TAG="voltha-voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${cfg.volthaNamespace} svc/voltha-voltha-api 55555:55555; done"&
+ _TAG="voltha-voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${cfg.volthaNamespace} svc/${cfg.stackName}-voltha-api 55555:55555; done"&
"""
sh """