-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
refactor(admin): secrets and ssls #8911
Conversation
@@ -148,23 +233,36 @@ function _M:put(id, conf, sub_path, args) | |||
end | |||
|
|||
|
|||
function _M:delete(id) | |||
function _M:delete(id, conf, sub_path) |
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.
Why do we need to pass conf
in this method?
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.
@spacewander We should Keep all methods in the same form.
https://github.com/apache/apisix/blob/master/apisix/admin/init.lua#L220
The meaningful first param is id, the second one is conf, and the third one is the sub_path.
Should we?
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.
Let's add a comment that explains why we need a placeholder conf
here.
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.
Done.
Description
Continue to review this work after #8820 is merged.
Refactor secrets and ssls.
All admin.resources is refactored.
Close #8569
Checklist