Skip to content
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

doc: add missing networkRBAC plugin #795

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

doc: add missing networkRBAC plugin #795

wants to merge 1 commit into from

Conversation

spacewander
Copy link
Member

No description provided.

@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.28%. Comparing base (c258914) to head (5f87ec6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #795      +/-   ##
==========================================
+ Coverage   87.22%   87.28%   +0.05%     
==========================================
  Files         143      143              
  Lines        8563     8563              
==========================================
+ Hits         7469     7474       +5     
+ Misses        852      848       -4     
+ Partials      242      241       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +64 to +65
if filename == "network_rbac" {
plugin = "networkRBAC"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about moving this logic to the snakeToCamel function?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope snakeToCamel can only focus on the work that its name indicates.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, network_rbac => networkRBAC is a special case for snakeToCamel. Placing this case into snakeToCamel will make the logic clearer.

This is just my preference, both ways are OK.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are some places that share the same name conversion, I would create a new function filenameToPluginName which contains network_rbac => networkRBAC.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are some places that share the same name conversion, I would create a new function filenameToPluginName which contains network_rbac => networkRBAC.

SGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants