Skip to content

Conversation

@koct9i
Copy link
Collaborator

@koct9i koct9i commented Dec 8, 2025

  • API: describe component and job resoruces control
  • Set data and tablet node available CPU in config

@koct9i
Copy link
Collaborator Author

koct9i commented Dec 8, 2025

Merge after rebase on top #599

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves resource configuration for YTsaurus components by updating API documentation and implementing proper CPU resource limits for data and tablet nodes.

  • Standardized resource field descriptions across CRDs to clarify that "Resources dedicated for component" with capacity defined by requests, or limits for zero requests
  • Refactored data and tablet node configuration to extract and set CPU resource limits from Kubernetes resource specifications
  • Updated test canonical data to reflect the new CPU values (changed from 0.000000 to 20.000000)

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated no comments.

Show a summary per file
File Description
api/v1/ytsaurus_types.go Added documentation comments clarifying how resource capacity is determined for components and job resources
docs/api.md Updated resource field descriptions to be more concise and added capacity definition details
pkg/ytconfig/node.go Refactored getDataNodeResourceLimits and getTabletNodeServerCarcass to properly extract and set CPU resources using the getResourceQuantity helper function
config/crd/bases/*.yaml Updated resource field descriptions to match the new standardized text
ytop-chart/templates/crds/*.yaml Updated resource field descriptions to match the new standardized text
pkg/ytconfig/canondata/**/test.canondata Updated test expectations to reflect CPU values changing from 0.000000 to 20.000000 for data and tablet nodes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@koct9i koct9i force-pushed the khlebnikov/set-data-and-tablet-node-resources branch 3 times, most recently from 7b3eccd to 98f3f94 Compare January 7, 2026 10:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@koct9i koct9i force-pushed the khlebnikov/set-data-and-tablet-node-resources branch from 98f3f94 to aabe1a2 Compare January 8, 2026 11:01
@koct9i koct9i force-pushed the khlebnikov/set-data-and-tablet-node-resources branch from aabe1a2 to fc950d8 Compare January 8, 2026 14:53
Copy link
Collaborator

@qurname2 qurname2 left a comment

Choose a reason for hiding this comment

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

LGTM.

@koct9i koct9i merged commit 039db84 into main Jan 8, 2026
8 of 9 checks passed
@koct9i koct9i deleted the khlebnikov/set-data-and-tablet-node-resources branch January 8, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants