Skip to content

feat(tikvworker): support tikv worker#6621

Merged
ti-chi-bot[bot] merged 4 commits intopingcap:mainfrom
liubog2008:liubo02/support-tikv-worker
Dec 23, 2025
Merged

feat(tikvworker): support tikv worker#6621
ti-chi-bot[bot] merged 4 commits intopingcap:mainfrom
liubog2008:liubo02/support-tikv-worker

Conversation

@liubog2008
Copy link
Member

@liubog2008 liubog2008 commented Dec 23, 2025

  • support tikv worker

Signed-off-by: liubo02 <liubo02@pingcap.com>
@ti-chi-bot ti-chi-bot bot requested a review from howardlau1999 December 23, 2025 03:22
@github-actions github-actions bot added the v2 for operator v2 label Dec 23, 2025
@ti-chi-bot ti-chi-bot bot added the size/XXL label Dec 23, 2025
@fgksgf fgksgf requested a review from Copilot December 23, 2025 03:23
@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 3.15375% with 737 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.53%. Comparing base (7f8dc94) to head (a17dafe).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6621      +/-   ##
==========================================
- Coverage   40.98%   39.53%   -1.46%     
==========================================
  Files         343      351       +8     
  Lines       20010    20659     +649     
==========================================
- Hits         8201     8167      -34     
- Misses      11809    12492     +683     
Flag Coverage Δ
unittest 39.53% <3.15%> (-1.46%) ⬇️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: liubo02 <liubo02@pingcap.com>
Copy link

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 adds comprehensive support for the TiKV Worker component to the tidb-operator. TiKV Worker is a new component type that follows a similar architecture pattern to existing components like TiProxy and TSO.

Key Changes

  • Introduces new CRD types for TiKVWorker and TiKVWorkerGroup with full controller implementations
  • Adds e2e test infrastructure including waiters, actions, and test data generators
  • Refactors common utility functions (HeadlessServiceName, PersistentVolumeClaimName) to be generic across all component types

Reviewed changes

Copilot reviewed 103 out of 105 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
api/core/v1alpha1/tikv_worker_types.go Defines TiKVWorker and TiKVWorkerGroup CRD types with specs and statuses
pkg/controllers/tikvworker/ Implements instance-level controller for TiKVWorker
pkg/controllers/tikvworkergroup/ Implements group-level controller for TiKVWorkerGroup
pkg/runtime/zz_generated.runtime.tikvworker.go Generated runtime wrappers for TiKVWorker types
pkg/configs/tikvworker/config.go Configuration management for TiKVWorker
tests/e2e/ Test infrastructure additions for TiKVWorker
pkg/apiutil/core/v1alpha1/ Refactored utility functions to use generics
cmd/tidb-operator/main.go Registers TiKVWorker controllers and indexers

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@fgksgf
Copy link
Member

fgksgf commented Dec 23, 2025

/lgtm

@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Dec 23, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fgksgf

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

@ti-chi-bot ti-chi-bot bot added the lgtm label Dec 23, 2025
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Dec 23, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-12-23 03:50:27.466130618 +0000 UTC m=+2136172.279908180: ☑️ agreed by fgksgf.

@ti-chi-bot ti-chi-bot bot added the approved label Dec 23, 2025
Signed-off-by: liubo02 <liubo02@pingcap.com>
@ti-chi-bot ti-chi-bot bot merged commit d6eb797 into pingcap:main Dec 23, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants