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 the PodNetworkType and NodeAffinity filed in the pod entity. #205

Merged
merged 8 commits into from
Aug 1, 2018

Conversation

hwchiu
Copy link
Contributor

@hwchiu hwchiu commented Jul 30, 2018

In the pod entity, we use the PodNetworkType to choose what kind of the network the Pod use and use the nodeAffinity to indicate which nodes it wants to run.

@codecov-io
Copy link

codecov-io commented Jul 30, 2018

Codecov Report

Merging #205 into develop will increase coverage by 2.45%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #205      +/-   ##
===========================================
+ Coverage     79.2%   81.66%   +2.45%     
===========================================
  Files           49       49              
  Lines         2462     2825     +363     
===========================================
+ Hits          1950     2307     +357     
- Misses         388      390       +2     
- Partials       124      128       +4
Impacted Files Coverage Δ
src/pod/pod.go 94.32% <100%> (+1.81%) ⬆️
src/prometheuscontroller/expression.go 83.05% <0%> (-11.83%) ⬇️
src/server/handler_service.go 75.17% <0%> (+3.88%) ⬆️
src/prometheuscontroller/query.go 92.85% <0%> (+3.96%) ⬆️
src/server/handler_pod.go 76.47% <0%> (+4.08%) ⬆️
src/server/handler_storage.go 85.82% <0%> (+4.09%) ⬆️
src/prometheuscontroller/controller.go 91.52% <0%> (+4.1%) ⬆️
src/server/handler_volume.go 78.57% <0%> (+4.15%) ⬆️
src/server/handler_user.go 77.43% <0%> (+5.66%) ⬆️
src/server/handler_network.go 77.77% <0%> (+6.15%) ⬆️

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 e5b8d29...e91f306. Read the comment docs.

@John-Lin John-Lin changed the title [WIP] [TASK} Support the PodNetworkType and NodeAffinity filed in the pod entity. [WIP] [TASK] Support the PodNetworkType and NodeAffinity filed in the pod entity. Jul 31, 2018
src/pod/pod.go Outdated
}
case entity.PodClusterNetwork:
//For cluster network, we won't set the nodeAffinity and any netwokr options.
Copy link
Contributor

Choose a reason for hiding this comment

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

network

@hwchiu hwchiu changed the title [WIP] [TASK] Support the PodNetworkType and NodeAffinity filed in the pod entity. [TASK] Support the PodNetworkType and NodeAffinity filed in the pod entity. Jul 31, 2018
@hwchiu hwchiu force-pushed the hwchiu/VX-231 branch 2 times, most recently from 22f901f to 4dd40c9 Compare July 31, 2018 07:56
src/pod/pod.go Outdated
@@ -231,16 +231,26 @@ func CreatePod(sp *serviceprovider.Container, pod *entity.Pod) error {
return err
}

nodeNames := []string{}
nodeNames := pod.NodeAffinity
Copy link
Contributor

Choose a reason for hiding this comment

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

要不要把nodeNames改成nodeAffinity?

@John-Lin John-Lin merged commit 91e9f43 into develop Aug 1, 2018
@John-Lin John-Lin deleted the hwchiu/VX-231 branch August 1, 2018 05:10
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