mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
config: Add bytes JSON to storagepb.Group, parse YAML config
* Allow bootcfg groups metadata to be defined via YAML * Convert YAML metadata to JSON bytes field in a protobuf message * Strip metadata except strings, string slices, and string-keyed maps with nesting
This commit is contained in:
@@ -74,7 +74,7 @@ func main() {
|
||||
// storage
|
||||
store := storage.NewFileStore(&storage.Config{
|
||||
Dir: flags.dataPath,
|
||||
Groups: cfg.PBGroups(),
|
||||
Groups: cfg.Groups,
|
||||
})
|
||||
|
||||
// gRPC Server
|
||||
|
||||
@@ -103,7 +103,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
store.BootstrapGroups(cfg.Groups)
|
||||
store.BootstrapGroups(cfg.YAMLGroups)
|
||||
|
||||
// HTTP server
|
||||
config := &api.Config{
|
||||
|
||||
Reference in New Issue
Block a user