AETHER-1908 Add connect timeout to init-sync sidecar

Change-Id: I3675c5daf237ed8058eab526455f1d0b736cfec5
diff --git a/omec/omec-control-plane/Chart.yaml b/omec/omec-control-plane/Chart.yaml
index 2096d75..ce62e09 100644
--- a/omec/omec-control-plane/Chart.yaml
+++ b/omec/omec-control-plane/Chart.yaml
@@ -10,4 +10,4 @@
 name: omec-control-plane
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.6.15
+version: 0.6.16
diff --git a/omec/omec-control-plane/templates/bin/_spgwc-init.sh.tpl b/omec/omec-control-plane/templates/bin/_spgwc-init.sh.tpl
index d752dbb..82ca533 100644
--- a/omec/omec-control-plane/templates/bin/_spgwc-init.sh.tpl
+++ b/omec/omec-control-plane/templates/bin/_spgwc-init.sh.tpl
@@ -4,7 +4,7 @@
 #
 # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
 
-while ! curl -f http://spgwc:8080/startup
+while ! curl -f --connect-timeout 5 http://spgwc:8080/startup
 do
   echo Waiting for SPGWC to be ready
   sleep 5
@@ -12,7 +12,7 @@
 echo SPGWC is ready
 
 echo Posting to sync URL {{ .Values.config.spgwc.managedByRoc.syncUrl }}
-while ! curl -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }}
+while ! curl --connect-timeout 5 -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }}
 do
   echo Failed posting to sync URL
   sleep 5