Skip to content

Commit

Permalink
adding mapping and description for configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldecheverz-split committed May 2, 2024
1 parent 5909b59 commit eb1a57b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion splitio/commitversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This file is created automatically, please do not edit
*/

// CommitVersion is the version of the last commit previous to release
const CommitVersion = "59410e1"
const CommitVersion = "5909b59"
2 changes: 1 addition & 1 deletion splitio/producer/conf/sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Main struct {
Integrations conf.Integrations `json:"integrations" s-nested:"true"`
Logging conf.Logging `json:"logging" s-nested:"true"`
Healthcheck Healthcheck `json:"healthcheck" s-nested:"true"`
SpecVersion string `json:"specVersion" s-cli:"spec-version" s-def:"1.1"`
SpecVersion string `json:"specVersion" s-cli:"spec-version" s-def:"1.1" s-desc:"Spec version for flags"`
}

// BuildAdvancedConfig generates a commons-compatible advancedconfig with default + overriden parameters
Expand Down
1 change: 0 additions & 1 deletion splitio/producer/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const (
// Start initialize the producer mode
func Start(logger logging.LoggerInterface, cfg *conf.Main) error {
// Getting initial config data
cfg.SpecVersion = "1.0" // @TODO Until is implemented
advanced := cfg.BuildAdvancedConfig()
advanced.AuthSpecVersion = cfg.SpecVersion
advanced.FlagsSpecVersion = cfg.SpecVersion
Expand Down
2 changes: 1 addition & 1 deletion splitio/proxy/conf/sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Main struct {
Logging conf.Logging `json:"logging" s-nested:"true"`
Healthcheck Healthcheck `json:"healthcheck" s-nested:"true"`
Observability Observability `json:"observability" s-nested:"true"`
SpecVersion string `json:"specVersion" s-cli:"spec-version" s-def:"1.1"`
SpecVersion string `json:"specVersion" s-cli:"spec-version" s-def:"1.1" s-desc:"Spec version for flags"`
}

// BuildAdvancedConfig generates a commons-compatible advancedconfig with default + overriden parameters
Expand Down
2 changes: 2 additions & 0 deletions splitio/proxy/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ func Start(logger logging.LoggerInterface, cfg *pconf.Main) error {
// Getting initial config data
advanced := cfg.BuildAdvancedConfig()
advanced.FlagSetsFilter = cfg.FlagSetsFilter
advanced.AuthSpecVersion = cfg.SpecVersion
advanced.FlagsSpecVersion = cfg.SpecVersion
metadata := util.GetMetadata(cfg.IPAddressEnabled, true)

// FlagSetsFilter
Expand Down

0 comments on commit eb1a57b

Please sign in to comment.