Skip to content

Conversation

@kmurudi
Copy link
Contributor

@kmurudi kmurudi commented Mar 2, 2021

The GetIPAddressesMatchingStates now returns IPConfigurationStatus
type, which also includes PodInfo along with IP address and state

Reason for Change:

Issue Fixed:

Requirements:

Notes:

@ghost
Copy link

ghost commented Mar 2, 2021

CLA assistant check
All CLA requirements met.

@matmerr
Copy link
Member

matmerr commented Mar 2, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #808 (5a6c484) into master (cab6615) will decrease coverage by 0.02%.
The diff coverage is 37.50%.

@@            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              

@kmurudi kmurudi requested review from matmerr and neaggarwMS March 2, 2021 02:49
ID: v.ID,
}
vsf = append(vsf, ip)
vsf = append(vsf, ipconfigstate)
Copy link
Member

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

@kmurudi kmurudi requested a review from matmerr March 2, 2021 05:01
IPConfigStateFilter []string
}

// GetIPAddressStateResponse is used in CNS IPAM mode as a response to get IP address state
Copy link
Member

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
Copy link
Member

func (service *HTTPRestService) getIPAddressesHandler(w http.ResponseWriter, r *http.Request) {

Is this API used only in debug context? @matmerr ?


Refers to: cns/restserver/ipam.go:193 in 96c61ef. [](commit_id = 96c61ef, deletion_comment = False)

Copy link
Member

@neaggarwMS neaggarwMS left a 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
@kmurudi kmurudi requested a review from neaggarwMS March 2, 2021 17:29
@kmurudi kmurudi removed their assignment Mar 4, 2021
Copy link
Member

@matmerr matmerr left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@neaggarwMS neaggarwMS left a comment

Choose a reason for hiding this comment

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

:shipit:

@kmurudi kmurudi merged commit 4096ab1 into Azure:master Mar 12, 2021
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