feat(t8s-cluster): add storage quota field#2043
Conversation
📝 WalkthroughWalkthroughThis pull request extends the quotas schema in the t8s-cluster Helm chart configuration by adding a new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request adds a storage quota field to the t8s-cluster Helm chart schema. A review comment suggests adding a description to this new field to clarify its purpose and units (e.g., GiB), as the current integer type is ambiguous regarding whether it represents a count or capacity.
There was a problem hiding this comment.
Pull request overview
Adds a new quotas.storage value to the t8s-cluster Helm chart JSON schema so that Helm values validation accepts a storage quota alongside existing quota fields.
Changes:
- Extend
charts/t8s-cluster/values.schema.jsonto allowquotas.storageas an integer with a minimum of-1(consistent withfloatingIPs).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
charts/t8s-cluster/values.schema.json (1)
173-176: LGTM! The newstoragequota field is correctly implemented.The schema definition follows the same pattern as the existing
floatingIPsfield, and the template atcharts/t8s-cluster/templates/management-cluster/cluster.yamlwill automatically render this new field viatoYaml.Optional enhancement: Add descriptions for clarity.
Consider adding a
descriptionfield to bothstorageandfloatingIPsto clarify their purpose and units. For example:📝 Optional: Add descriptions to quota fields
"quotas": { "type": "object", "properties": { "floatingIPs": { "type": "integer", + "description": "Maximum number of floating IPs that can be allocated. Use -1 for unlimited.", "minimum": -1 }, "storage": { "type": "integer", + "description": "Maximum storage quota in gigabytes. Use -1 for unlimited.", "minimum": -1 } },🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@charts/t8s-cluster/values.schema.json` around lines 173 - 176, Add descriptive metadata to the quota fields by adding a "description" entry for both the "storage" and "floatingIPs" properties in values.schema.json; update the "storage" property to include a clear description (e.g., units and semantics such as "Storage quota in GiB, -1 for unlimited") and add a similar description for "floatingIPs" (e.g., "Number of floating IPs allowed, -1 for unlimited") so templates that render values via toYaml (e.g., cluster YAML) have clear documentation for users.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@charts/t8s-cluster/values.schema.json`:
- Around line 173-176: Add descriptive metadata to the quota fields by adding a
"description" entry for both the "storage" and "floatingIPs" properties in
values.schema.json; update the "storage" property to include a clear description
(e.g., units and semantics such as "Storage quota in GiB, -1 for unlimited") and
add a similar description for "floatingIPs" (e.g., "Number of floating IPs
allowed, -1 for unlimited") so templates that render values via toYaml (e.g.,
cluster YAML) have clear documentation for users.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 00d06b3b-9341-47af-ad4d-fb5bf98473ce
📒 Files selected for processing (1)
charts/t8s-cluster/values.schema.json
🤖 I have created a release *beep* *boop* --- ## [9.8.0](t8s-cluster-v9.7.1...t8s-cluster-v9.8.0) (2026-04-13) ### Features * **t8s-cluster:** add storage quota field ([#2043](#2043)) ([c5ffba5](c5ffba5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a storage quota field for t8s-cluster, enabling users to define and manage storage allocation limits within the cluster. * **Documentation** * Chart README and changelog updated with the new storage quota docs and usage guidance. * **Chores** * t8s-cluster released as version 9.8.0. **Version:** t8s-cluster 9.8.0 <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Summary by CodeRabbit