Skip to content

Conversation

JiGuoDing
Copy link
Collaborator

Ⅰ. Describe what this PR does

This PR addresses the security finding “Memory & Storage limits should be enforced” by introducing a new hardened sample Job manifest samples/jindo/job.yaml.

The sample demonstrates how to securely configure a Kubernetes Job with constrained resource usage by explicitly setting:

resources:
  limits:
    memory: "64Mi"
    ephemeral-storage: "512Mi"

Ⅱ. Does this pull request fix one issue?

fixes #XXXX

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

No automated tests are required.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link

codecov bot commented Sep 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.70%. Comparing base (16093c9) to head (7f9948d).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5261   +/-   ##
=======================================
  Coverage   56.70%   56.70%           
=======================================
  Files         440      440           
  Lines       30369    30369           
=======================================
  Hits        17220    17220           
  Misses      11537    11537           
  Partials     1612     1612           

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

Copy link
Member

@yangyuliufeng yangyuliufeng left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

resources:
limits:
memory: "64Mi"
ephemeral-storage: "512Mi"
Copy link
Member

Choose a reason for hiding this comment

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

I suggest setting the memory limits to 512Mi and storage limits to 5Gi.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the suggestion—I’ll apply those limits.

@fluid-e2e-bot fluid-e2e-bot bot removed the lgtm label Sep 28, 2025
Copy link

Copy link
Member

@RongGu RongGu left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Copy link

fluid-e2e-bot bot commented Sep 29, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RongGu, yangyuliufeng

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [RongGu,yangyuliufeng]

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 fluid-e2e-bot bot merged commit d1f4583 into fluid-cloudnative:master Sep 29, 2025
16 checks passed
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.

3 participants