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

Add more columns for tkctl get tikv #842

Merged
merged 20 commits into from
Sep 12, 2019
Merged

Add more columns for tkctl get tikv #842

merged 20 commits into from
Sep 12, 2019

Conversation

Yisaer
Copy link
Contributor

@Yisaer Yisaer commented Aug 29, 2019

What problem does this PR solve?

add storeid column for tkctl when type get tikv
#564

What is changed and how does it work?

Add type alias for Tikv v1.Pod and registered 2 new printer handlers so that tkctl will only add STOREID column when tkctl get tikv only

Check List

Tests

  • Manual test

Code changes

  • Has Go code change

Side effects

  • N/A

Related changes

  • N/A

Does this PR introduce a user-facing change?:

`tkctl get tikv` add `STOREID` column to show store id for each tikv pod

@CLAassistant
Copy link

CLAassistant commented Aug 29, 2019

CLA assistant check
All committers have signed the CLA.

@Yisaer Yisaer marked this pull request as ready for review August 29, 2019 06:19
@Yisaer Yisaer closed this Aug 29, 2019
@Yisaer Yisaer reopened this Aug 29, 2019
@Yisaer Yisaer changed the title Add dedicated columns for tikv get Add dedicated columns for tkctl get tikv Aug 29, 2019
@Yisaer Yisaer changed the title Add dedicated columns for tkctl get tikv Add more columns for tkctl get tikv Aug 29, 2019
@gregwebs gregwebs requested a review from aylei August 30, 2019 14:07
@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 4, 2019

Here is the result the tkctl get tikv will look lile for this PR.

$ ./tkctl get tikv
NAME          READY   STATUS    MEMORY          CPU             RESTARTS   AGE    STOREID
tidb-tikv-0   1/1     Running   <none>/<none>   <none>/<none>   1          8d     4
tidb-tikv-1   1/1     Running   <none>/<none>   <none>/<none>   1          8d     1
tidb-tikv-2   1/1     Running   <none>/<none>   <none>/<none>   1          8d     5
tidb-tikv-3   1/1     Running   <none>/<none>   <none>/<none>   0          16h    1001
tidb-tikv-4   1/1     Running   <none>/<none>   <none>/<none>   0          16h    1002
tidb-tikv-5   1/1     Running   <none>/<none>   <none>/<none>   0          12h    1003
tidb-tikv-6   1/1     Running   <none>/<none>   <none>/<none>   0          164m   1006
tidb-tikv-7   1/1     Running   <none>/<none>   <none>/<none>   0          164m   1037
tidb-tikv-8   1/1     Running   <none>/<none>   <none>/<none>   0          163m   1038

@gregwebs
Copy link
Contributor

gregwebs commented Sep 6, 2019

@aylei PTAL

@cofyc
Copy link
Contributor

cofyc commented Sep 10, 2019

/run-e2e-in-kind

pkg/tkctl/readable/printers.go Outdated Show resolved Hide resolved
pkg/tkctl/readable/printers.go Outdated Show resolved Hide resolved
Yisaer and others added 2 commits September 10, 2019 10:57
Co-Authored-By: weekface <weekface@gmail.com>
Co-Authored-By: weekface <weekface@gmail.com>
cofyc
cofyc previously approved these changes Sep 10, 2019
Copy link
Contributor

@cofyc cofyc left a comment

Choose a reason for hiding this comment

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

SGTM

weekface
weekface previously approved these changes Sep 10, 2019
@Yisaer Yisaer dismissed stale reviews from weekface and cofyc via fd0c419 September 12, 2019 02:52
@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 12, 2019

/run-e2e-in-kind

cofyc
cofyc previously approved these changes Sep 12, 2019
weekface
weekface previously approved these changes Sep 12, 2019
Copy link
Contributor

@weekface weekface left a comment

Choose a reason for hiding this comment

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

LGTM

aylei
aylei previously approved these changes Sep 12, 2019
Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

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

LGTM

@aylei
Copy link
Contributor

aylei commented Sep 12, 2019

/run-e2e-in-kind

@Yisaer Yisaer dismissed stale reviews from aylei, weekface, and cofyc via b92987f September 12, 2019 03:42
@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 12, 2019

/run-e2e-in-kind

@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 12, 2019

/run-e2e-test

@cofyc
Copy link
Contributor

cofyc commented Sep 12, 2019

https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/operator_ghpr_e2e_test_kind/detail/operator_ghpr_e2e_test_kind/289/pipeline

[2019-09-12T04:26:57.677Z] ++ /root/go/bin/kind get kubeconfig-path --name=kind4

[2019-09-12T04:26:57.677Z] + export KUBECONFIG=/root/.kube/kind-config-kind4

[2019-09-12T04:26:57.677Z] + KUBECONFIG=/root/.kube/kind-config-kind4

[2019-09-12T04:26:57.677Z] + elapseTime=0

[2019-09-12T04:26:57.677Z] + period=5

[2019-09-12T04:26:57.677Z] + threshold=300

[2019-09-12T04:26:57.677Z] + kubectl delete -f tests/manifests/e2e/e2e.yaml

[2019-09-12T04:26:58.241Z] unable to recognize "tests/manifests/e2e/e2e.yaml": Get https://127.0.0.1:46217/api?timeout=32s: dial tcp 127.0.0.1:46217: connect: connection refused

[2019-09-12T04:26:58.241Z] unable to recognize "tests/manifests/e2e/e2e.yaml": Get https://127.0.0.1:46217/api?timeout=32s: dial tcp 127.0.0.1:46217: connect: connection refused

[2019-09-12T04:26:58.241Z] unable to recognize "tests/manifests/e2e/e2e.yaml": Get https://127.0.0.1:46217/api?timeout=32s: dial tcp 127.0.0.1:46217: connect: connection refused

[2019-09-12T04:26:58.241Z] unable to recognize "tests/manifests/e2e/e2e.yaml": Get https://127.0.0.1:46217/api?timeout=32s: dial tcp 127.0.0.1:46217: connect: connection refused

@xiaojingchen kind4 is not working now?

@Yisaer Yisaer requested review from aylei and cofyc September 12, 2019 05:15
Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

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

LGTM

@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 12, 2019

/run-e2e-in-kind

@Yisaer
Copy link
Contributor Author

Yisaer commented Sep 12, 2019

/run-e2e-test

@cofyc cofyc merged commit fbf20bc into pingcap:master Sep 12, 2019
@Yisaer Yisaer deleted the add_dedicated_columns_for_tikv_get branch September 12, 2019 07:33
yahonda pushed a commit that referenced this pull request Dec 27, 2021
* en: Improve self-hosted k8s deployment

* Update deploy-tidb-operator.md

* Update deploy-tidb-operator.md

* Update prerequisites.md

* Apply suggestions from code review

Co-authored-by: Ran <huangran@pingcap.com>

Co-authored-by: Ran <huangran@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants