tidb-operator icon indicating copy to clipboard operation
tidb-operator copied to clipboard

initial support for tiproxy [2/2]

Open xhebox opened this issue 3 years ago • 4 comments

Signed-off-by: xhe [email protected]

What problem does this PR solve?

Depends on #4711

What is changed and how does it work?

  1. support tiproxy, manualy tested. Two notable differences: first, its dynamic confimap is managed by controller completely, not helm; second, it has two dynamic options that applies on fly using HTTP api by examing difference between spec and status.
  2. controller.AnnProm is modified to support special metrics path
  3. baseImage done right. Without setting baseImage in charts/tidb-cluster/templates/tidb-cluster.yaml, this option actually does not work. The bug applies to all components though, I just fix tiproxy for now
  4. My local test scripts using minikube are added to /hack/localtest, including ssl toolsets. Some lightweight modifications should make it work generally for all components.
  5. updated golangci-lint

Code changes

  • [x] Has Go code change
  • [x] Has CI related scripts change

Tests

  • [ ] Unit test
  • [ ] E2E test
  • [x] Manual test
./hack/localtest/test.sh all
kubectl port-forward -n testing svc/cluster-tiproxy 6000
mycli -u root -P 6000
  • [ ] No code

Side effects

  • [ ] Breaking backward compatibility
  • [ ] Other side effects:

Related changes

  • [ ] Need to cherry-pick to the release branch
  • [ ] Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.

Initial support for tiproxy

xhebox avatar Sep 07 '22 03:09 xhebox

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • KanShiori
  • csuzhangxc

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.

ti-chi-bot avatar Sep 07 '22 03:09 ti-chi-bot

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 07 '22 03:09 CLAassistant

Codecov Report

Merging #4693 (62437ee) into master (796fe64) will increase coverage by 4.69%. The diff coverage is 5.77%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4693      +/-   ##
==========================================
+ Coverage   61.19%   65.88%   +4.69%     
==========================================
  Files         212      221       +9     
  Lines       23887    27346    +3459     
==========================================
+ Hits        14617    18017    +3400     
+ Misses       7900     7892       -8     
- Partials     1370     1437      +67     
Flag Coverage Δ
e2e 45.23% <4.83%> (?)
unittest 59.79% <4.34%> (-1.40%) :arrow_down:

codecov-commenter avatar Sep 07 '22 03:09 codecov-commenter

/hold

I'll do some updates to adapt the newest tiproxy.

xhebox avatar Sep 30 '22 08:09 xhebox

/unhold

Please review this PR

xhebox avatar Oct 11 '22 06:10 xhebox

Rest LGTM

KanShiori avatar Nov 13 '22 13:11 KanShiori

/merge

KanShiori avatar Nov 14 '22 03:11 KanShiori

This pull request has been accepted and is ready to merge.

Commit hash: 73535b1a70b405834627a2e28039ea0d08d465e3

ti-chi-bot avatar Nov 14 '22 03:11 ti-chi-bot

/run-all-tests

KanShiori avatar Nov 14 '22 03:11 KanShiori

@xhebox: Your PR was out of date, I have automatically updated it for you.

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 ti-community-infra/tichi repository.

ti-chi-bot avatar Nov 14 '22 05:11 ti-chi-bot

/test pull-e2e-kind-br

xhebox avatar Nov 14 '22 05:11 xhebox

/test pull-e2e-kind

xhebox avatar Nov 14 '22 06:11 xhebox

/test pull-e2e-kind

xhebox avatar Nov 14 '22 07:11 xhebox

/test pull-e2e-kind

xhebox avatar Nov 14 '22 09:11 xhebox

/test pull-e2e-kind

xhebox avatar Nov 14 '22 14:11 xhebox

/test pull-e2e-kind

xhebox avatar Nov 15 '22 02:11 xhebox

/test pull-e2e-kind

djshow832 avatar Nov 15 '22 02:11 djshow832