cks: fix list apis response count#8701
Conversation
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el7 ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 8762 |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #8701 +/- ##
=============================================
- Coverage 15.13% 14.96% -0.18%
+ Complexity 13469 10987 -2482
=============================================
Files 4863 5373 +510
Lines 326031 469026 +142995
Branches 45838 58668 +12830
=============================================
+ Hits 49349 70177 +20828
- Misses 270066 391082 +121016
- Partials 6616 7767 +1151
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8763 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9324)
|
Fixes count value in listKubernetesClusters and listSupportedKubernetesVersions APIs response. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
da1a07b to
73e61b4
Compare
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9310 |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9698 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-10282)
|
kiranchavala
left a comment
There was a problem hiding this comment.
@shwstppr Just tested on the latest 4.19, I found that count for both apis is working fine
Any step I am missing?
shapeblue) 🐱 > list kubernetessupportedversions filter=name
{
"count": 3,
(shapeblue) 🐱 > list kubernetesclusters filter=name
{
"count": 2,
|
@kiranchavala can you please try giving a pagesize lesser than the number of resources present in the env? |
|
@kiranchavala here is an example in an env without fix (count should have been returned same [=3] in both case), |
kiranchavala
left a comment
There was a problem hiding this comment.
LGTM. Tested the fix
The count is same
(cmk) 🐱 > list kubernetessupportedversions filter=id,name
{
"count": 3,
"kubernetessupportedversion": [
{
"id": "ed372000-c2cb-45e0-aa72-e0eda51f618d",
"name": "v1.28.4"
},
{
"id": "7f4a657a-96d3-4ed6-afc7-379361299462",
"name": "v1.27.8"
},
{
"id": "5b2594ec-f41f-4bd4-9ff1-57c1c9a18c20",
"name": "v1.26.0"
}
]
}
(cmk) 🐱 > list kubernetessupportedversions pagesize=2 page=1 filter=id,name
{
"count": 3,
"kubernetessupportedversion": [
{
"id": "ed372000-c2cb-45e0-aa72-e0eda51f618d",
"name": "v1.28.4"
},
{
"id": "7f4a657a-96d3-4ed6-afc7-379361299462",
"name": "v1.27.8"
}
]
}
(cmk) 🐱 > list kubernetesclusters filter=id,name
{
"count": 2,
"kubernetescluster": [
{
"id": "21975df3-2f19-4865-890c-e9eb58b671fb",
"name": "cks1"
},
{
"id": "9607e862-a082-4c5b-a92c-245cf78ca3f0",
"name": "cks2"
}
]
}
(cmk) 🐱 > list kubernetesclusters pagesize=1 page=1 filter=id,name
{
"count": 2,
"kubernetescluster": [
{
"id": "21975df3-2f19-4865-890c-e9eb58b671fb",
"name": "cks1"
}
]
}
* cks: fix list apis count Fixes count value in listKubernetesClusters and listSupportedKubernetesVersions APIs response.
Description
Fixes count value in listKubernetesClusters and listSupportedKubernetesVersions APIs response.
Currently, it returns items count of the response
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?