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

support to get node IP #33

Merged
merged 6 commits into from
Jun 23, 2018
Merged

support to get node IP #33

merged 6 commits into from
Jun 23, 2018

Conversation

John-Lin
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 23, 2018

Codecov Report

Merging #33 into develop will increase coverage by 1.51%.
The diff coverage is 100%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
src/kubernetes/nodes.go 90% <100%> (+10%) ⬆️
src/kubernetes/kubectl.go 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b312705...062dd9c. Read the comment docs.

@John-Lin John-Lin requested a review from chenyunchen June 23, 2018 10:15
Copy link
Contributor

@hwchiu hwchiu left a 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.

@John-Lin John-Lin force-pushed the johnlin/get-nodeip branch from 1e7a421 to 2cc3c29 Compare June 23, 2018 13:50
assert.NoError(t, err)
assert.Equal(t, 2, len(nodes))
}

func (suite *KubeCtlTestSuite) TestGetNodeExternalIP(t *testing.T) {
Copy link
Contributor

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

@John-Lin
Copy link
Contributor Author

@hwchiu done

@John-Lin John-Lin closed this Jun 23, 2018
@John-Lin John-Lin reopened this Jun 23, 2018
@hwchiu
Copy link
Contributor

hwchiu commented Jun 23, 2018

why the coverage from 80% to 0%?

src/kubernetes/nodes.go | 0% <0%> (-80%)

@John-Lin
Copy link
Contributor Author

fixed

Copy link
Contributor

@hwchiu hwchiu left a comment

Choose a reason for hiding this comment

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

LGTM

@hwchiu hwchiu merged commit 1768230 into develop Jun 23, 2018
@hwchiu hwchiu deleted the johnlin/get-nodeip branch June 23, 2018 15:34
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
support to get node IP

Former-commit-id: e10f487bb051e4a26588eb088bfb9e4cb071e243 [formerly 1768230]
Former-commit-id: 11226fca1172de15fb5c05546604809889a32da4
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
support to get node IP

Former-commit-id: e10f487bb051e4a26588eb088bfb9e4cb071e243 [formerly e10f487bb051e4a26588eb088bfb9e4cb071e243 [formerly 1768230]]
Former-commit-id: 11226fca1172de15fb5c05546604809889a32da4
Former-commit-id: 29cc033
John-Lin pushed a commit that referenced this pull request Jul 25, 2018
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