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(pdgroup): migrate to task v3 #6011

Merged
merged 3 commits into from
Dec 27, 2024

Conversation

liubog2008
Copy link
Member

@liubog2008 liubog2008 commented Dec 26, 2024

  • use task v3 to org tasks of pd group
  • refactor status task
  • support currentReplicas and updateReplicas

@ti-chi-bot ti-chi-bot bot added the size/XXL label Dec 26, 2024
@liubog2008 liubog2008 added the v2 for operator v2 label Dec 26, 2024
@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

@codecov-commenter
Copy link

codecov-commenter commented Dec 26, 2024

Codecov Report

Attention: Patch coverage is 68.65285% with 121 lines in your changes missing coverage. Please review.

Project coverage is 31.91%. Comparing base (749fbbb) to head (3b64d33).
Report is 1 commits behind head on feature/v2.

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/v2    #6011      +/-   ##
==============================================
+ Coverage       24.50%   31.91%   +7.40%     
==============================================
  Files             151      153       +2     
  Lines            9912     9945      +33     
==============================================
+ Hits             2429     3174     +745     
+ Misses           7294     6517     -777     
- Partials          189      254      +65     
Flag Coverage Δ
unittest 31.91% <68.65%> (+7.40%) ⬆️

Comment on lines 297 to 299
// UpdateReplicas is the number of Instances created by the Group controller from the Group version
// indicated by updateRevision.
UpdatedReplicas int32 `json:"updatedReplicas,omitempty"`
UpdateReplicas int32 `json:"updateReplicas"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Why change this? StatefulSet also use updatedReplicas instead of updateReplicas
https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/stateful-set-v1/#StatefulSetStatus

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I'll change back

Copy link
Contributor

ti-chi-bot bot commented Dec 26, 2024

@fgksgf: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Comment on lines +86 to +87
// TODO(liubo02): version of a group is hard to understand
// We need to change it to a more meaningful field
Copy link
Contributor

Choose a reason for hiding this comment

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

We need a field to indicate if a group is upgrading.

Copy link
Member Author

Choose a reason for hiding this comment

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

prefer condition

@liubog2008
Copy link
Member Author

/run-pull-e2e-kind-v2

Signed-off-by: liubo02 <[email protected]>
@liubog2008 liubog2008 enabled auto-merge (squash) December 27, 2024 01:19
@liubog2008 liubog2008 merged commit 90a3a2a into pingcap:feature/v2 Dec 27, 2024
6 of 7 checks passed
Copy link
Contributor

ti-chi-bot bot commented Dec 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: csuzhangxc

The full list of commands accepted by this bot can be found here.

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

Copy link
Contributor

ti-chi-bot bot commented Dec 27, 2024

@csuzhangxc: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL v2 for operator v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants