Andy Bavier | 1a2d8f5 | 2021-06-04 16:04:17 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Copyright 2021-present Open Networking Foundation |
| 4 | # |
| 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 6 | |
Andy Bavier | 8e2d497 | 2021-06-22 16:46:09 -0700 | [diff] [blame] | 7 | while ! curl -f --connect-timeout 5 http://spgwc:8080/startup |
Andy Bavier | 1a2d8f5 | 2021-06-04 16:04:17 -0700 | [diff] [blame] | 8 | do |
| 9 | echo Waiting for SPGWC to be ready |
| 10 | sleep 5 |
| 11 | done |
| 12 | echo SPGWC is ready |
| 13 | |
| 14 | echo Posting to sync URL {{ .Values.config.spgwc.managedByRoc.syncUrl }} |
Andy Bavier | 8e2d497 | 2021-06-22 16:46:09 -0700 | [diff] [blame] | 15 | while ! curl --connect-timeout 5 -f -X POST {{ .Values.config.spgwc.managedByRoc.syncUrl }} |
Andy Bavier | 1a2d8f5 | 2021-06-04 16:04:17 -0700 | [diff] [blame] | 16 | do |
| 17 | echo Failed posting to sync URL |
| 18 | sleep 5 |
| 19 | done |
| 20 | echo |
| 21 | |
| 22 | echo Sleeping forever |
| 23 | while true |
| 24 | do |
| 25 | sleep 86400 |
| 26 | done |