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

feat: support specifying the volume attributes class for PVCs #8783

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

leon-inf
Copy link
Contributor

close #8781

@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 7.14286% with 26 lines in your changes missing coverage. Please review.

Project coverage is 60.54%. Comparing base (ac3c0c8) to head (77dfe90).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controllerutil/volume_util.go 0.00% 18 Missing ⚠️
apis/apps/v1/deprecated.go 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8783      +/-   ##
==========================================
+ Coverage   60.27%   60.54%   +0.26%     
==========================================
  Files         381      381              
  Lines       46158    46149       -9     
==========================================
+ Hits        27823    27939     +116     
+ Misses      15673    15544     -129     
- Partials     2662     2666       +4     
Flag Coverage Δ
unittests 60.54% <7.14%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@leon-inf leon-inf force-pushed the feature/volume-attributes-class branch from cf6578a to dbe3a14 Compare January 10, 2025 03:04
@leon-inf leon-inf marked this pull request as ready for review January 10, 2025 03:06
@leon-inf leon-inf requested review from Y-Rookie and a team as code owners January 10, 2025 03:06
Resources: r.Resources,
StorageClassName: r.getStorageClassName(viper.GetString(constant.CfgKeyDefaultStorageClass)),
VolumeMode: r.VolumeMode,
VolumeAttributesClassName: r.VolumeAttributesClassName,
}
}

// getStorageClassName returns PersistentVolumeClaimSpec.StorageClassName if a value is assigned; otherwise,
// it returns preferSC argument.
Copy link
Contributor

Choose a reason for hiding this comment

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

update the comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 10, 2025
@leon-inf leon-inf force-pushed the feature/volume-attributes-class branch from dbe3a14 to 4475349 Compare January 10, 2025 06:57
@apecloud-bot apecloud-bot removed the approved PR Approved Test label Jan 10, 2025
@leon-inf
Copy link
Contributor Author

/approve

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 10, 2025
@leon-inf leon-inf merged commit 4760c20 into main Jan 10, 2025
35 checks passed
@leon-inf leon-inf deleted the feature/volume-attributes-class branch January 10, 2025 08:13
@leon-inf
Copy link
Contributor Author

/cherry-pick release-1.0-beta

@github-actions github-actions bot added this to the Release 0.9.2 milestone Jan 10, 2025
@apecloud-bot
Copy link
Collaborator

🤖 says: cherry pick action finished successfully 🎉!
See: https://github.com/apecloud/kubeblocks/actions/runs/12705728445

apecloud-bot pushed a commit that referenced this pull request Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved PR Approved Test size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement]volumeClaimTemplates模版可以支持csi设置
3 participants