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

fix: cluster supports specifing PVC annotations and labels #8804

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gnolong
Copy link
Contributor

@gnolong gnolong commented Jan 14, 2025

fix #8805
By applying different annotations to different type of PVC, Ape-local can set different IO quotas for various volumes.

@gnolong gnolong requested review from leon-inf, Y-Rookie and a team as code owners January 14, 2025 09:22
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 60.32%. Comparing base (982672d) to head (5b2af6d).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
apis/apps/v1/deprecated.go 0.00% 3 Missing ⚠️
apis/apps/v1alpha1/cluster_types.go 0.00% 3 Missing ⚠️
pkg/controllerutil/volume_util.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8804      +/-   ##
==========================================
- Coverage   60.34%   60.32%   -0.03%     
==========================================
  Files         381      381              
  Lines       46215    46221       +6     
==========================================
- Hits        27889    27883       -6     
- Misses      15654    15664      +10     
- Partials     2672     2674       +2     
Flag Coverage Δ
unittests 60.32% <0.00%> (-0.03%) ⬇️

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.

@github-actions github-actions bot added size/XL Denotes a PR that changes 500-999 lines. and removed size/L Denotes a PR that changes 100-499 lines. labels Jan 15, 2025
@@ -152,7 +152,9 @@ func (r *ClusterComponentStatus) GetObjectMessage(objectKind, objectName string)
func (r *ClusterComponentVolumeClaimTemplate) toVolumeClaimTemplate() corev1.PersistentVolumeClaimTemplate {
return corev1.PersistentVolumeClaimTemplate{
ObjectMeta: metav1.ObjectMeta{
Name: r.Name,
Labels: r.Labels,
Copy link
Contributor

Choose a reason for hiding this comment

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

Refer to this PR and consolidate the transformation of VCTs to PVCs and PVCTs: #8809

apis/apps/v1/types.go Outdated Show resolved Hide resolved
@leon-inf leon-inf added this to the Release 1.0.0 milestone Jan 15, 2025
@github-actions github-actions bot added size/L Denotes a PR that changes 100-499 lines. and removed size/XL Denotes a PR that changes 500-999 lines. labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] supports specifing different annotations for different type of PVC
2 participants