Including instance details in KubernetesClusterResponse#4420
Conversation
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2262 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| UserVmJoinVO userVM = userVmJoinDao.findById(vmMapVO.getVmId()); | ||
| if (userVM != null) { | ||
| vmIds.add(userVM.getUuid()); | ||
| UserVmResponse vmResponse = ApiDBUtils.newUserVmResponse(respView, "virtualmachine", userVM, |
There was a problem hiding this comment.
would like this string constant defined
|
Trillian test result (tid-3045)
|
| response.setNetworkId(ntwk.getUuid()); | ||
| response.setAssociatedNetworkName(ntwk.getName()); | ||
| List<String> vmIds = new ArrayList<String>(); | ||
| List<UserVmResponse> vmIds = new ArrayList<UserVmResponse>(); |
There was a problem hiding this comment.
@davidjumani considering that this variable has changed from a list of VM IDs to a list of VM Responses I would suggest renaming it.
What do you think of vmResponses or vmResponseList?
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2267 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3061)
|
|
@GabrielBrascher is this lgty? |
shwstppr
left a comment
There was a problem hiding this comment.
LGTM on code changes and functionality works. Only concern, will this make listKubernetesCluster API response too big!
|
@shwstppr This is needed for the cluster auotscaler (rather return the entire result than give listVMs access to an external service) |
|
satisfied @shwstppr ? can we merge? |
shwstppr
left a comment
There was a problem hiding this comment.
LGTM. @davidjumani seems okay based on auto-scaler, Primate requirements cc @DaanHoogland
Description
Returning list of virtual machine nodes of a cluster rather than just their IDs. Simplifies the UI as well (Reduces API calls and checks post 4.15 release in primate for backward compatibility)
Types of changes
How Has This Been Tested?