align more storage-system names (#3674)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -50,7 +50,7 @@ func DefaultConfig() *config.Config {
|
||||
},
|
||||
|
||||
Metadata: config.Metadata{
|
||||
GatewayAddress: "127.0.0.1:9215", // metadata storage
|
||||
GatewayAddress: "127.0.0.1:9215", // system storage
|
||||
StorageAddress: "127.0.0.1:9215",
|
||||
ServiceUserIDP: "internal",
|
||||
},
|
||||
|
||||
@@ -47,7 +47,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
|
||||
pidFile := path.Join(os.TempDir(), "revad-"+cfg.Service.Name+"-"+uuid.Must(uuid.NewV4()).String()+".pid")
|
||||
|
||||
rcfg := revaconfig.StorageMetadataFromStruct(cfg)
|
||||
rcfg := revaconfig.StorageSystemFromStruct(cfg)
|
||||
|
||||
gr.Add(func() error {
|
||||
runtime.RunWithOptions(rcfg, pidFile, runtime.WithLogger(&logger.Logger))
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"github.com/owncloud/ocis/extensions/storage-system/pkg/config"
|
||||
)
|
||||
|
||||
// StorageMetadataFromStruct will adapt an oCIS config struct into a reva mapstructure to start a reva service.
|
||||
func StorageMetadataFromStruct(cfg *config.Config) map[string]interface{} {
|
||||
// StorageSystemFromStruct will adapt an oCIS config struct into a reva mapstructure to start a reva service.
|
||||
func StorageSystemFromStruct(cfg *config.Config) map[string]interface{} {
|
||||
rcfg := map[string]interface{}{
|
||||
"core": map[string]interface{}{
|
||||
"tracing_enabled": cfg.Tracing.Enabled,
|
||||
|
||||
Reference in New Issue
Block a user