From 883a63138826f54b1f92abe84e17188dcd3154b8 Mon Sep 17 00:00:00 2001 From: Venkatreddy KP Date: Sat, 19 Aug 2023 22:54:32 +0530 Subject: [PATCH] add flag service registration and app store sync --- charts/server/Chart.yaml | 2 +- server/pkg/iam-client/register_service.go | 2 +- server/pkg/store-apps/sync_store_apps.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/server/Chart.yaml b/charts/server/Chart.yaml index 67f1b2f0..5b002e27 100644 --- a/charts/server/Chart.yaml +++ b/charts/server/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.14 +version: 0.1.15 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/server/pkg/iam-client/register_service.go b/server/pkg/iam-client/register_service.go index 4cd3d24e..643d7299 100644 --- a/server/pkg/iam-client/register_service.go +++ b/server/pkg/iam-client/register_service.go @@ -19,7 +19,7 @@ func RegisterService(log logging.Logger) error { return err } - if cfg.ServiceRegister { + if !cfg.ServiceRegister { log.Infof("service registration disabled") return nil } diff --git a/server/pkg/store-apps/sync_store_apps.go b/server/pkg/store-apps/sync_store_apps.go index 2c12ef6c..4658a445 100644 --- a/server/pkg/store-apps/sync_store_apps.go +++ b/server/pkg/store-apps/sync_store_apps.go @@ -15,7 +15,7 @@ import ( type Config struct { AppStoreAppConfigPath string `envconfig:"APP_STORE_APP_CONFIG_PATH" default:"/store-apps/conf"` - ReadAppStoreConfig bool `envconfig:"READ_APP_STORE_CONFIG" default:"true"` + SyncAppStore bool `envconfig:"SYNC_APP_STORE" default:"false"` AppStoreConfigFile string `envconfig:"APP_STORE_CONFIG_FILE" default:"/store-apps/app_list.yaml"` } @@ -30,7 +30,7 @@ func SyncStoreApps(log logging.Logger, appStore store.ServerStore) error { return err } - if !cfg.ReadAppStoreConfig { + if !cfg.SyncAppStore { log.Info("app store config synch disabled") return nil }