-
Notifications
You must be signed in to change notification settings - Fork 549
[Rest Server] Refactor storage by leveraging persistent volumes #4157
Conversation
Refactor storage by leveraging kubernetes pv and pvc.
ddb903a
to
e2dbb74
Compare
eddbd11
to
9bbc952
Compare
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.
This change only keep get
and list
API.
Do we need add some doc about how to create
or delete
storage?
And previous tools such as storagectl will not work.
Maybe we need to fix this tool to let admin add storage for certain group. Otherwise, we need to modify configMap manually.
@@ -1317,165 +1317,31 @@ paths: | |||
$ref: '#/components/responses/NoJobConfigError/content/application~1json/examples/NoJobConfigError' | |||
500: | |||
$ref: '#/components/responses/UnknownError' | |||
/api/v2/storage/server/{storage}: |
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.
Actually, I don't know when to use v1 API and when to use v2 API...
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.
I don't know neither, previous storage uses v2 and just kept the same
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.
OK... Hope we can provide a process about how to promote a API from beta
to release
. And when to deprecated old API....
6c95e66
to
ab6c336
Compare
Update swagger api docs.
Add default storages and check deprecated config.
Update mount path.
a7461eb
to
fbdd6e9
Compare
Could we mark to-be-deprecated to the
|
yes, those apis have been removed from api docs in this PR, @Binyang2014 will delete runtime plugin after this PR merged. user will only see docs on new api and use new, existing code uses old api won't be effected. |
Remove unused code.
Add default option in storage query.
Add document on setting up storage.
pls refer to this document
yes, I have added a deprecated notice for it
admin could use paictl or group api to create/update/delete storage for a given group, as described in this document |
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.
LGTM
Test case:
|
Refactor storage by leveraging kubernetes pv and pvc.
TODO: