-
Notifications
You must be signed in to change notification settings - Fork 260
CNS_Fixing debug API #808
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
CNS_Fixing debug API #808
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #808 +/- ##
==========================================
- Coverage 42.34% 42.32% -0.03%
==========================================
Files 144 144
Lines 14191 14191
==========================================
- Hits 6009 6006 -3
- Misses 7456 7459 +3
Partials 726 726 |
cns/restserver/ipam.go
Outdated
| ID: v.ID, | ||
| } | ||
| vsf = append(vsf, ip) | ||
| vsf = append(vsf, ipconfigstate) |
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.
since the filter type is the same as the return type, we can append v here instead of copying to a new struct ipconfigstate
| IPConfigStateFilter []string | ||
| } | ||
|
|
||
| // GetIPAddressStateResponse is used in CNS IPAM mode as a response to get IP address state |
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.
Is this only used for debug API and not any other scenario like ACI/Batch? @matmerr ?
neaggarwMS
left a comment
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.
🕐
The GetIPAddressesMatchingStates now returns IPConfigurationStatus type, which also includes PodInfo along with IP address and state fix : minor formatting
GetIPAddressStateResponse kept as original struct, and added GetIPAddressStatusResponse Minor changes to reflect GetIPAddressStatusResponse
matmerr
left a comment
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.
🚀
neaggarwMS
left a comment
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.
![]()
The GetIPAddressesMatchingStates now returns IPConfigurationStatus
type, which also includes PodInfo along with IP address and state
Reason for Change:
Issue Fixed:
Requirements:
Notes: