Skip to content

This PR is to add comments to getMountConfigmapName in fluid/pkg/ddc/alluxio/master_internal.go#5907

Open
Aryxis wants to merge 1 commit into
fluid-cloudnative:masterfrom
Aryxis:add-comments-to-getMountConfigmapName
Open

This PR is to add comments to getMountConfigmapName in fluid/pkg/ddc/alluxio/master_internal.go#5907
Aryxis wants to merge 1 commit into
fluid-cloudnative:masterfrom
Aryxis:add-comments-to-getMountConfigmapName

Conversation

@Aryxis
Copy link
Copy Markdown

@Aryxis Aryxis commented May 23, 2026

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

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented May 23, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign cheyang for approval by writing /assign @cheyang in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot
Copy link
Copy Markdown

fluid-e2e-bot Bot commented May 23, 2026

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

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.

Comment on lines +116 to +117
// 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

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.

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 23, 2026

/ok-to-test

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 23, 2026

⚠️ DCO check failed (ACTION_REQUIRED). Please ensure all commits are signed with git commit -s. See https://probot.github.io/apps/dco/ for details.

@Aryxis Aryxis force-pushed the add-comments-to-getMountConfigmapName branch 2 times, most recently from 841d825 to 611b891 Compare May 24, 2026 12:22
@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 24, 2026

/ok-to-test

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 24, 2026

⚠️ DCO check failed. Please ensure all commits have proper Signed-off-by: lines matching the commit author. You can fix this by amending your commits with git commit --amend -s or adding the sign-off to each commit individually.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.59%. Comparing base (b0222b2) to head (611b891).
⚠️ Report is 4 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Aryxis Aryxis force-pushed the add-comments-to-getMountConfigmapName branch from 611b891 to 040d780 Compare May 24, 2026 13:14
…_internal.go

Signed-off-by: Aryxis <138089446+Aryxis@users.noreply.github.com>
@Aryxis Aryxis force-pushed the add-comments-to-getMountConfigmapName branch from 040d780 to 4581e1f Compare May 24, 2026 13:19
@sonarqubecloud
Copy link
Copy Markdown

@cheyang
Copy link
Copy Markdown
Collaborator

cheyang commented May 25, 2026

/lgtm /approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add comments to getMountConfigmapName in fluid/pkg/ddc/alluxio/master_internal.go

2 participants