This PR is to add comments to getMountConfigmapName in fluid/pkg/ddc/alluxio/master_internal.go#5907
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @Aryxis. Thanks for your PR. I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Code Review
This pull request adds documentation to the getMountConfigmapName function in the Alluxio engine. Feedback suggests renaming the function for casing consistency and modifying the returned ConfigMap name to include the engine implementation suffix to prevent potential naming collisions.
| // getMountConfigmapName returns the name of the ConfigMap that stores mount-related configurations for the Alluxio engine. | ||
| // It uses the engine's name concatenated with "-mount-config" as the ConfigMap name. |
There was a problem hiding this comment.
The naming convention for this ConfigMap is inconsistent with getHelmValuesConfigMapName in the same file. It uses Configmap (lowercase 'm') instead of ConfigMap, and it omits the e.engineImpl suffix. This inconsistency can lead to naming collisions if multiple engine types are used for the same dataset (e.g., Alluxio and Jindo) in the same namespace. Consider renaming the function to getMountConfigMapName and updating the return value to include e.engineImpl (e.g., e.name + "-" + e.engineImpl + "-mount-config") for better consistency and safety.
|
/ok-to-test |
|
|
841d825 to
611b891
Compare
|
/ok-to-test |
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5907 +/- ##
=======================================
Coverage 62.59% 62.59%
=======================================
Files 480 480
Lines 32801 32801
=======================================
Hits 20533 20533
Misses 10633 10633
Partials 1635 1635 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
611b891 to
040d780
Compare
…_internal.go Signed-off-by: Aryxis <138089446+Aryxis@users.noreply.github.com>
040d780 to
4581e1f
Compare
|
|
/lgtm /approve |



I. Describe what this PR does
This PR adds comments to the getMountConfigmapName function, explaining its purpose and return value.
II. Does this pull request fix one issue?
fixes #5906
III. Special notes for reviews