-
Notifications
You must be signed in to change notification settings - Fork 8
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
support to get node IP #33
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #33 +/- ##
===========================================
+ Coverage 60.8% 62.32% +1.51%
===========================================
Files 13 14 +1
Lines 347 361 +14
===========================================
+ Hits 211 225 +14
Misses 124 124
Partials 12 12
Continue to review full report at Codecov.
|
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.
I think we should create a object to have a kubernetes.Inteface as its member and we don't need to pass the clientset to all member function.
1e7a421
to
2cc3c29
Compare
src/kubernetes/nodes_test.go
Outdated
assert.NoError(t, err) | ||
assert.Equal(t, 2, len(nodes)) | ||
} | ||
|
||
func (suite *KubeCtlTestSuite) TestGetNodeExternalIP(t *testing.T) { |
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 the test case to get the non-existed node name
@hwchiu done |
why the coverage from 80% to 0%? src/kubernetes/nodes.go | 0% <0%> (-80%) |
fixed |
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
support to get node IP Former-commit-id: e10f487bb051e4a26588eb088bfb9e4cb071e243 [formerly 1768230] Former-commit-id: 11226fca1172de15fb5c05546604809889a32da4
No description provided.