We observed that autosleep service instance is unable to bind more than 50 applications in a space. On debugging, we found the reason is method
List<ApplicationIdentity> listAliveApplications(String spaceUuid, Pattern excludeNames)
in class
class CloudFoundryApi
does not handle the complete paginated response of ListApplicationsRequest
By default, first page is handled in response and it has 50 (default) entries.
Solution: To handle complete paginated response.
Similarly, the following methods need correction:
listApplicationRouteslistRouteApplications
We observed that autosleep service instance is unable to bind more than 50 applications in a space. On debugging, we found the reason is method
List<ApplicationIdentity> listAliveApplications(String spaceUuid, Pattern excludeNames)
in classclass CloudFoundryApi
does not handle the complete paginated response ofListApplicationsRequest
By default, first page is handled in response and it has 50 (default) entries.Solution: To handle complete paginated response.
Similarly, the following methods need correction:
listApplicationRoutes
listRouteApplications
cc / @pradyutsarma