-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
c503324
to
b6f729e
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
fc1c55f
to
b6f729e
Compare
Conflict |
348f800
to
735d3b7
Compare
- Update route command of pod's init-container - Update network-controller image version from v0.4.0 to v0.4.3
735d3b7
to
5ccf651
Compare
src/entity/pod.go
Outdated
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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required,dive,required
src/entity/pod.go
Outdated
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"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required,dive,required
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integration test failed.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gateway(required):
No description provided.