-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WebUI plugins infra #8588
Add WebUI plugins infra #8588
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments
pkg/api/controller.go
Outdated
} | ||
// TODO (niro): Needs to be populated | ||
storageListCfg := apigen.StorageConfigList{} | ||
storageCfg, _ := c.getStorageConfig(config.SingleBlockstoreID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that we swallowed the error here?
pkg/api/controller.go
Outdated
} | ||
|
||
writeResponse(w, r, http.StatusOK, storageConfig) | ||
storageCfg, _ := c.getStorageConfig(config.SingleBlockstoreID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok that we swallowed the error here?
pkg/config/config.go
Outdated
@@ -211,12 +226,147 @@ type Blockstore struct { | |||
} `mapstructure:"gs"` | |||
} | |||
|
|||
func (b *Blockstore) GetStorageByID(id string) AdapterConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear to me how these million changes to config relate to webui plugin infra???
# Conflicts: # pkg/api/controller.go # pkg/block/azure/adapter_test.go # pkg/block/gs/adapter_test.go # pkg/block/local/adapter_test.go # pkg/block/s3/adapter_test.go # pkg/config/config.go
@nadavsteindler I needed to merge master into it, sry about that. |
Closes #8586.
Change Description
Allow adding WebUI plugins.