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] Update pod route #261

Merged
merged 9 commits into from
Aug 21, 2018
Merged

[Task] Update pod route #261

merged 9 commits into from
Aug 21, 2018

Conversation

sufuf3
Copy link
Contributor

@sufuf3 sufuf3 commented Aug 20, 2018

No description provided.

@sufuf3 sufuf3 force-pushed the sufuf3/update-route branch from c503324 to b6f729e Compare August 20, 2018 11:33
@codecov-io
Copy link

codecov-io commented Aug 20, 2018

Codecov Report

Merging #261 into develop will decrease coverage by 0.02%.
The diff coverage is 14.28%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #261      +/-   ##
===========================================
- Coverage    79.38%   79.35%   -0.03%     
===========================================
  Files           55       55              
  Lines         2993     2994       +1     
===========================================
  Hits          2376     2376              
  Misses         467      467              
- Partials       150      151       +1
Impacted Files Coverage Δ
src/pod/pod.go 94.14% <14.28%> (-0.47%) ⬇️

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 8170a0e...5c0d6f7. Read the comment docs.

@sufuf3 sufuf3 force-pushed the sufuf3/update-route branch from fc1c55f to b6f729e Compare August 20, 2018 12:09
@sufuf3 sufuf3 changed the title Update route Update pod route Aug 20, 2018
@John-Lin
Copy link
Contributor

Conflict

@sufuf3 sufuf3 force-pushed the sufuf3/update-route branch 3 times, most recently from 348f800 to 735d3b7 Compare August 20, 2018 13:03
sufuf3 added 3 commits August 20, 2018 21:06
- Update route command of pod's init-container
- Update network-controller image version from v0.4.0 to v0.4.3
@sufuf3 sufuf3 force-pushed the sufuf3/update-route branch from 735d3b7 to 5ccf651 Compare August 20, 2018 13:06
IPAddress string `bson:"ipAddress" json:"ipAddress" validate:"required,ipv4"`
Netmask string `bson:"netmask" json:"netmask" validate:"required,ipv4"`
RoutesGw []PodRouteGw `bson:"routesGw,omitempty" json:"routesGw" validate:"dive"`
RoutesIntf []PodRouteIntf `bson:"routesIntf,omitempty" json:"routesIntf" validate:"dive"`
Copy link
Contributor

Choose a reason for hiding this comment

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

required,dive,required

VlanTag *int32 `bson:"vlanTag" json:"vlanTag" validate:"-"`
IPAddress string `bson:"ipAddress" json:"ipAddress" validate:"required,ipv4"`
Netmask string `bson:"netmask" json:"netmask" validate:"required,ipv4"`
RoutesGw []PodRouteGw `bson:"routesGw,omitempty" json:"routesGw" validate:"dive"`
Copy link
Contributor

Choose a reason for hiding this comment

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

required,dive,required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I met CI fail if I use required,dive,required in validate.

Copy link
Contributor

Choose a reason for hiding this comment

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

integration test failed.

@John-Lin John-Lin changed the title Update pod route [Task] Update pod route Aug 20, 2018
API.md Outdated
@@ -632,6 +620,11 @@ For each Pod, we have fileds need to handle.
- vlanTag: the vlan tag for `ifName` interface.
- ipADdress: the IPv4 address of the `ifName` interface.
- netmask: the IPv4 netmask of the `ifName` interface.
- routesGw: a array of route with gateway (Optional)
- dstCIDR: destination network cidr for add IP routing table
Copy link
Contributor

Choose a reason for hiding this comment

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

dstCIDR(required):

API.md Outdated
- dstCIDR: destination network cidr for add IP routing table
- gateway: the gateway of the interface subnet
- routeIntf: a array of route without gateway (Optional)
- dstCIDR: destination network cidr for add IP routing table
Copy link
Contributor

Choose a reason for hiding this comment

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

dstCIDR(required):

API.md Outdated
@@ -632,6 +620,11 @@ For each Pod, we have fileds need to handle.
- vlanTag: the vlan tag for `ifName` interface.
- ipADdress: the IPv4 address of the `ifName` interface.
- netmask: the IPv4 netmask of the `ifName` interface.
- routesGw: a array of route with gateway (Optional)
- dstCIDR: destination network cidr for add IP routing table
- gateway: the gateway of the interface subnet
Copy link
Contributor

Choose a reason for hiding this comment

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

gateway(required):

@John-Lin John-Lin merged commit fd581e3 into develop Aug 21, 2018
@hwchiu hwchiu deleted the sufuf3/update-route branch August 21, 2018 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants