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

[Task] Support hostnetwork option when creating Pod #186

Merged
merged 2 commits into from
Jul 27, 2018
Merged

Conversation

hwchiu
Copy link
Contributor

@hwchiu hwchiu commented Jul 27, 2018

For some case, the Pod wants to use the hostNetwork rather than any bridge-like network.

@hwchiu hwchiu added the Feature Features label Jul 27, 2018
@codecov-io
Copy link

codecov-io commented Jul 27, 2018

Codecov Report

Merging #186 into develop will decrease coverage by 0.03%.
The diff coverage is 70%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #186      +/-   ##
===========================================
- Coverage    78.95%   78.92%   -0.04%     
===========================================
  Files           45       45              
  Lines         2229     2240      +11     
===========================================
+ Hits          1760     1768       +8     
- Misses         364      365       +1     
- Partials       105      107       +2
Impacted Files Coverage Δ
src/pod/pod.go 92.51% <70%> (-1.38%) ⬇️
src/net/http/handler.go 100% <0%> (ø) ⬆️

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 f590fff...a4c683b. Read the comment docs.

@@ -52,7 +52,8 @@ type Pod struct {
Volumes []PodVolume `bson:"volumes,omitempty" json:"volumes" validate:"required,dive,required"`
Networks []PodNetwork `bson:"networks,omitempty" json:"networks" validate:"required,dive,required"`
RestartPolicy string `bson:"restartPolicy" json:"restartPolicy" validate:"required,eq=Always|eq=OnFailure|eq=Never`
Capability bool `bson:"capability" json:"Capability" validate:"required"`
Capability bool `bson:"capability" json:"Capability" validate:"-"`
Copy link

Choose a reason for hiding this comment

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

Please use underscore for json:"capability"

@John-Lin John-Lin merged commit 07fbac6 into develop Jul 27, 2018
@John-Lin John-Lin deleted the hwchiu/VX-223 branch July 27, 2018 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants