Skip to content

Commit

Permalink
Add inline yaml tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nrfox committed Dec 21, 2023
1 parent 7ad5c4a commit dc1dfbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ type Clustering struct {

type FeatureFlagClustering struct {
// TODO: Deprecate this in favor of Clustering.Clusters.
Clustering
Clustering `yaml:",inline"`
EnableExecProvider bool `yaml:"enable_exec_provider,omitempty" json:"enable_exec_provider"`
}

Expand Down Expand Up @@ -1053,6 +1053,10 @@ func Unmarshal(yamlString string) (conf *Config, err error) {
conf.Clustering.Clusters = conf.KialiFeatureFlags.Clustering.Clusters
}

if conf.Clustering.KialiURLs == nil && conf.KialiFeatureFlags.Clustering.KialiURLs != nil {
conf.Clustering.KialiURLs = conf.KialiFeatureFlags.Clustering.KialiURLs
}

return
}

Expand Down

0 comments on commit dc1dfbb

Please sign in to comment.