-
Notifications
You must be signed in to change notification settings - Fork 260
Implement CreateOrUpdateNetworkContainerInternal API. #617
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
Implement CreateOrUpdateNetworkContainerInternal API. #617
Conversation
Codecov Report
@@ Coverage Diff @@
## master #617 +/- ##
==========================================
+ Coverage 42.23% 42.49% +0.26%
==========================================
Files 72 72
Lines 9985 9993 +8
==========================================
+ Hits 4217 4247 +30
+ Misses 5316 5276 -40
- Partials 452 470 +18 |
5b19439 to
f4ebf1c
Compare
ccbafc8 to
0f99ae6
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
710a137 to
d3f0ce9
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| fmt.Printf("Failed to create CNS object %v\n", err) | ||
| os.Exit(1) | ||
| } | ||
| svc = service.(*HTTPRestService) |
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.
new svc object is being created on line 110
| // nc := cns.CreateNetworkContainerRequest{ | ||
| // SecondaryIPConfigs: ipconfigs, | ||
| // } | ||
| func addTestStateToRestServer(t *testing.T, secondaryIps []string) { |
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.
nit: Can you declare vars at the beginning of the function in one block like this?
var (
ipConfig cns.IPConfiguration
ipSubnet cns.IPSubnet
...
)
I picked this up from Mat's code and I think it makes for cleaner functions
67264cf to
2b8ec6f
Compare
Added implementation for CreateOrUpdateNetworkContainerInternal. This will be called by the CNS requestController and it will handle SecondaryIpConfigs update which will add state for new Secondary ips and delete the state for any delta.