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

fixes #2817 run with empty label #2822

Closed
wants to merge 1 commit into from
Closed

fixes #2817 run with empty label #2822

wants to merge 1 commit into from

Conversation

Flsorescence
Copy link
Contributor

Ⅰ. Describe what this PR did

fixes the issue#2817 Failed to run a container with empty label

Ⅱ. Does this pull request fix one issue?

fixes #2817

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

I have modified the labels_test.go and add some new unit tests.

Ⅳ. Describe how to verify it

pouch run --label k without value can run successfully

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Apr 30, 2019

Codecov Report

Merging #2822 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2822      +/-   ##
==========================================
- Coverage   69.35%   69.35%   -0.01%     
==========================================
  Files         278      278              
  Lines       17448    17451       +3     
==========================================
+ Hits        12101    12103       +2     
- Misses       3995     4001       +6     
+ Partials     1352     1347       -5
Flag Coverage Δ
#criv1alpha2_test 39.23% <0%> (-0.02%) ⬇️
#integration_test_0 36.53% <0%> (-0.01%) ⬇️
#integration_test_1 35.32% <0%> (ø) ⬆️
#integration_test_2 36.58% <0%> (+0.1%) ⬆️
#integration_test_3 35.4% <0%> (+0.07%) ⬆️
#node_e2e_test 35.06% <0%> (+0.04%) ⬆️
#unittest 28.73% <100%> (-0.01%) ⬇️
Impacted Files Coverage Δ
apis/opts/labels.go 82.35% <100%> (-17.65%) ⬇️
pkg/streams/utils.go 82.14% <0%> (-7.15%) ⬇️
cri/v1alpha2/cri.go 71.22% <0%> (ø) ⬆️
ctrd/container.go 55.02% <0%> (+0.75%) ⬆️
ctrd/watch.go 78.37% <0%> (+5.4%) ⬆️

@pouchrobot
Copy link
Collaborator

@Flsorescence Thanks for your contribution. 🍻
Please sign off in each of your commits.

@pouchrobot
Copy link
Collaborator

We found this is your first time to contribute to Pouch, @Flsorescence
👏 We really appreciate it.
Just remind that you have read the contribution guide: https://github.com/alibaba/pouch/blob/master/CONTRIBUTING.md
If you didn't, you should do that first. If done, welcome again and please enjoy hacking! 🍻

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]Failed to run a container with empty label
3 participants