Added tests and improvements
[nonrtric.git] / test / common / kube_proxy_api_functions.sh
index dcaaf80..eb4600c 100644 (file)
@@ -107,6 +107,18 @@ __KUBEPROXY_initial_setup() {
        use_kube_proxy_http
 }
 
+# Set app short-name, app name and namespace for logging runtime statistics of kubernets pods or docker containers
+# For docker, the namespace shall be excluded
+# This function is called for apps managed by the test script as well as for prestarted apps.
+# args: -
+__KUBEPROXY_statisics_setup() {
+       if [ $RUNMODE == "KUBE" ]; then
+               echo "KUBEPROXXY $KUBE_PROXY_APP_NAME $KUBE_SIM_NAMESPACE"
+       else
+               echo "KUBEPROXXY $KUBE_PROXY_APP_NAME"
+       fi
+}
+
 #######################################################
 
 ## Access to Kube http proxy