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 version command for tkctl #456

Merged
merged 7 commits into from
May 8, 2019
Merged

Conversation

aylei
Copy link
Contributor

@aylei aylei commented May 6, 2019

This is related to #452

Signed-off-by: Aylei rayingecho@gmail.com

What problem does this PR solve?

Add version command for tkctl

What is changed and how it works?

New go file

Check List

Manual tested:

$ tkctl version
Client Version: v1.0.0-beta.1-p2-103-g84a9098b20114c-dirty
TiDB Controller Manager Version: pingcap/tidb-operator:latest
TiDB Scheduler Version:
	tidb-scheduler: pingcap/tidb-operator:latest
	kube-scheduler: uhub.ucloud.cn/pingcap/hyperkube:v1.10.2_coreos.0

$ tkctl version -c
Client Version: v1.0.0-beta.1-p2-103-g84a9098b20114c-dirty

Signed-off-by: Aylei <rayingecho@gmail.com>
@aylei aylei mentioned this pull request May 6, 2019
3 tasks
pkg/tkctl/cmd/version/version.go Outdated Show resolved Hide resolved
pkg/tkctl/cmd/version/version.go Outdated Show resolved Hide resolved
tennix
tennix previously approved these changes May 7, 2019
Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix requested a review from weekface May 7, 2019 09:47
@tennix
Copy link
Member

tennix commented May 7, 2019

Can we show the kube-scheduler version bundled with tidb-scheduler, this may be useful when troubleshooting.

weekface
weekface previously approved these changes May 8, 2019
Co-Authored-By: aylei <rayingecho@gmail.com>
@aylei aylei dismissed stale reviews from weekface and tennix via 84a9098 May 8, 2019 05:58
@aylei
Copy link
Contributor Author

aylei commented May 8, 2019

@tennix @weekface Thanks for your review, I've made some updates since then, could you PTAL again?

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

Copy link
Contributor

@onlymellb onlymellb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix tennix merged commit d62d109 into pingcap:master May 8, 2019
shuijing198799 pushed a commit to shuijing198799/tidb-operator that referenced this pull request May 9, 2019
* Add version command for tkctl

Signed-off-by: Aylei <rayingecho@gmail.com>
shuijing198799 added a commit to shuijing198799/tidb-operator that referenced this pull request May 9, 2019
Add version command for tkctl (pingcap#456)

* Add version command for tkctl

Signed-off-by: Aylei <rayingecho@gmail.com>

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

add tools code and modify code
shuijing198799 added a commit to shuijing198799/tidb-operator that referenced this pull request May 9, 2019
* use shareinformer without copy

* fix bug use shareinformer without copy in kv pd and svc

add webhook

Add version command for tkctl (pingcap#456)

* Add version command for tkctl

Signed-off-by: Aylei <rayingecho@gmail.com>

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

add tools code and modify code

use shareinformer without copy

fix bug use shareinformer without copy in kv pd and svc

add webhook

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code

Add tkctl user manual (pingcap#452)

* Add basic documents for CLI tool

Signed-off-by: Aylei <rayingecho@gmail.com>

* Add TOC for manual

Signed-off-by: Aylei <rayingecho@gmail.com>

* Document about installation and shell completion

Signed-off-by: Aylei <rayingecho@gmail.com>

* Address review comments

* Fix toc anchor link

modify code and add cli

add tools code and modify code
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.

4 participants