-
Notifications
You must be signed in to change notification settings - Fork 517
add tibr controller #6223
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
add tibr controller #6223
Conversation
Hi @grovecai. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/v2 #6223 +/- ##
==============================================
- Coverage 47.43% 47.03% -0.40%
==============================================
Files 283 295 +12
Lines 18762 19541 +779
==============================================
+ Hits 8899 9192 +293
- Misses 9863 10349 +486
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
// Define this as array for future extension | ||
// +listType=map | ||
// +listMapKey=name | ||
// +kubebuilder:validation:MaxItems=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently, only need one optional volume "data"
|
||
Spec: appsv1.StatefulSetSpec{ | ||
ServiceName: HeadlessSvcName(tibr), | ||
Replicas: ptr.To(StatefulSetReplica), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If only one replica is needed, I think using pod directly is better than using statefulset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discuss offline, statefulset is easy satisfy auto restart and auto pv provisioning.
} | ||
|
||
func StatefulSetName(tibr *v1alpha1br.TiBR) string { | ||
return tibr.Name + "-sts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add component name
into all kubernetes resources to avoid name conflict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normally {groupName}-{component}-{custom name}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
/run-pull-e2e-kind-v2 |
/run-pull-e2e-kind-v2 |
/lgtm |
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liubog2008 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Support following operations
what is not?
What problem does this PR solve?
What is changed and how does it work?
Code changes
Tests
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.