-
Notifications
You must be signed in to change notification settings - Fork 499
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 port podip nodeip to tkctl upinfo #538
Conversation
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
pkg/util/util.go
Outdated
|
||
if len(pod.Spec.Containers) == 0 { | ||
return nil, false | ||
} |
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.
Remove these three redundant lines
pkg/tkctl/cmd/upinfo/upinfo.go
Outdated
|
||
container, ok := util.GetContainerViaName(v1alpha1.TiDBMemberType.String(), &pod) | ||
if !ok { | ||
return errors.New("no tidb container") |
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 of a CLI command, it's better to render <none>
or error message instead of return an error. This can guarantee that other informations are still rendered and won't be hidden by this error.
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.
make sense
pkg/tkctl/cmd/upinfo/upinfo.go
Outdated
} | ||
port, ok := getServerPort(container) | ||
if !ok { | ||
return errors.New("no server port") |
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.
ditto
Please paste the output of this command, as #387 (comment) does |
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.
LGTM
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
please add a release note. |
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
It's better to follow |
1ecf863
to
3341402
Compare
/run-e2e-tests |
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.
LGTM
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
/run-e2e-tests |
1 similar comment
/run-e2e-tests |
/run-e2e-tests |
What problem does this PR solve?
add port podip nodeip to tkctl upinfo
What is changed and how it works?
Check List
Tests
Code changes
Does this PR introduce a user-facing change?: