orchestrator/broker: implement the broker component

Currently, it only exposes the configuration to other components. In
the future, it should be able to interact with them somehow.
This commit is contained in:
Vincent Bernat
2022-04-10 16:26:38 +02:00
parent 93da599adf
commit 2fed10c8d2
11 changed files with 238 additions and 71 deletions

View File

@@ -36,7 +36,7 @@ func (c ConfigRelatedOptions) Parse(out io.Writer, component string, config inte
return fmt.Errorf("cannot parse configuration URL: %w", err)
}
if u.Path == "" {
u.Path = fmt.Sprintf("/api/v0/orchestrator/configuration/%s", component)
u.Path = fmt.Sprintf("/api/v0/orchestrator/broker/configuration/%s", component)
}
resp, err := http.Get(u.String())
if err != nil {