-
Notifications
You must be signed in to change notification settings - Fork 417
Add Capabilities Property In Config #9876
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
Conversation
N-o-Z
left a comment
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.
Thanks - see comments
| Capabilities: | ||
| type: object | ||
| properties: | ||
| async_ops: |
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.
| async_ops: | |
| async_ops: | |
| description: is async operations enabled in server. *EXPERIMENTAL* |
pkg/api/controller.go
Outdated
| } | ||
| } | ||
|
|
||
| func (c *Controller) getCapabilities() *apigen.Capabilities { |
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.
Can be inline
pkg/api/controller.go
Outdated
|
|
||
| func (c *Controller) getCapabilities() *apigen.Capabilities { | ||
| capabilitiesConfig := c.Config.CapabilitiesConfig() | ||
| asyncOps := capabilitiesConfig.GetAsyncOps() |
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.
unnecessary var
api/swagger.yml
Outdated
| $ref: "#/components/schemas/StorageConfigList" | ||
| ui_config: | ||
| $ref: "#/components/schemas/UIConfig" | ||
| capabilities: |
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.
How do you feel about calling this graveler_capabilities? It feels less like 1 catches all but still general
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.
What's graveler in the context of the controller. Controller is not suppose to be away of graveler - that's why we have catalog. I'm strongly against that
Closes #9875
Added the capabilities property In config for lakectl with async commit and merge