[WIFI-6837] Chg: modify readiness to make some envs optional, switch default helm service type to ClusterIP

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-01-28 13:54:22 +03:00
parent 479e3cc96c
commit 0a4bd59c56
2 changed files with 22 additions and 22 deletions

View File

@@ -22,7 +22,7 @@ images:
services:
owfms:
type: LoadBalancer
type: ClusterIP
ports:
restapi:
servicePort: 16004

View File

@@ -13,6 +13,8 @@ then
exit 1
fi
if [[ "${READINESS_METHOD}" == "systeminfo" ]]
then
if [[ "${OWSEC}" == "" ]]
then
echo "You must set the variable OWSEC in order to use this script. Something like"
@@ -34,8 +36,6 @@ then
exit 1
fi
if [[ "${READINESS_METHOD}" == "systeminfo" ]]
then
# Get OAuth token from OWSEC and cache it or use cached one
payload="{ \"userId\" : \"$OWSEC_USERNAME\" , \"password\" : \"$OWSEC_PASSWORD\" }"
if [[ -f "/tmp/token" ]]