Skip to content

Conversation

@TrafalgarZZZ
Copy link
Member

Ⅰ. Describe what this PR does

Fluid is usually installed by Helm. When helm installs/upgrades a helm release, it generates a Kubernetes Secret resource to store all the compressed release data(including CRD specifications) in it. Kubernetes has a size limit on the stored data in a Secret resource (normally 1M). Fluid may touch the size limit when we are introducing more and more Fluid CRDs to the helm chart.

Currently, the size of the compressed data of a Fluid helm release is about 880K, which is approaching the limit (1.0M)

$ kubectl describe secrets sh.helm.release.v1.fluid.v1
Name:         sh.helm.release.v1.fluid.v1
Namespace:    default
Labels:       modifiedAt=1758523160
              name=fluid
              owner=helm
              status=deployed
              version=1
Annotations:  <none>

Type:  helm.sh/release.v1

Data
====
release:  879544 bytes

This PR follows common solutions proposed in community (Kubebuilder FAQ, Kubernetes#82292) to trim all descriptions in the CRD to make CRD size smaller.

After trimming all the description, we see the size of the compressed data lowers down to ~160K:

k describe secrets sh.helm.release.v1.fluid.v1
Name:         sh.helm.release.v1.fluid.v1
Namespace:    default
Labels:       modifiedAt=1758523697
              name=fluid
              owner=helm
              status=deployed
              version=1
Annotations:  <none>

Type:  helm.sh/release.v1

Data
====
release:  161784 bytes

NOTE: trimming all the descriptions brings side effects: kubectl explain will no longer "explain" the meaning of each field. USERS should refer to Fluid's API Doc for field references.

Ⅱ. Does this pull request fix one issue?

NONE

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

…lm release

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
@TrafalgarZZZ TrafalgarZZZ changed the title optim: trim description in all fluid crds to avoid touching size limit in helm release storage optim: trim descriptions in fluid crds to avoid touching size limit in helm release storage Sep 22, 2025
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.50%. Comparing base (c6dc844) to head (8627880).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5251   +/-   ##
=======================================
  Coverage   55.50%   55.50%           
=======================================
  Files         443      443           
  Lines       30438    30438           
=======================================
  Hits        16896    16896           
  Misses      11978    11978           
  Partials     1564     1564           

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

@cheyang cheyang 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

@cheyang cheyang merged commit 0614325 into fluid-cloudnative:master Sep 22, 2025
15 checks passed
@fluid-e2e-bot fluid-e2e-bot bot added the lgtm label Sep 24, 2025
@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Sep 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cheyang

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

The pull request process is described 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

Pikabooboo pushed a commit to Pikabooboo/fluid that referenced this pull request Sep 25, 2025
…lm release (fluid-cloudnative#5251)

Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
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.

2 participants