Skip to content

Commit

Permalink
Merge pull request #179 from kube-tarian/serviceregflag
Browse files Browse the repository at this point in the history
add flag service registration and app store sync
  • Loading branch information
vramk23 authored Aug 19, 2023
2 parents 8a465e2 + 883a631 commit 2b03e0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion server/pkg/iam-client/register_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions server/pkg/store-apps/sync_store_apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand All @@ -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
}
Expand Down

0 comments on commit 2b03e0c

Please sign in to comment.