saffronjam opened a new issue, #7425:
URL: https://github.com/apache/cloudstack/issues/7425

   ##### ISSUE TYPE
    * Bug Report
   
   ##### COMPONENT NAME
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   ~~~
   4.18
   ~~~
   
   ##### CONFIGURATION
   Default configuration
   
   ##### OS / ENVIRONMENT
   N/A
   
   ##### SUMMARY
   
   The response of **GET getKubernetesClusterConfig** does not match the entry 
in **GET listApis**
   
   GET getKubernetesClusterConfig returns
   ```
   {
     "clusterconfig": {
       "id": "<uuid>"
       "name": "<cluster name>",
       "configdata": "<config data> "
     }
   }
   ```
   
   While
   GET listApis specifies:
   ```
   {
       "id": "<uuid>"
       "name": "<cluster name>",
       "configdata": "<config data> "
   }
   ```
   
   ##### STEPS TO REPRODUCE
   ~~~
   1. Run GET getKubernetesClusterConfig for some kubernetes cluster
   2. Run GET listApis and check the entry for the getKubernetesClusterConfig 
route
   
   It does not match
   ~~~
   
   ##### EXPECTED RESULTS
   
   I expect **either** GET getKubernetesClusterConfig to return
   ```
   {
       "id": "<uuid>"
       "name": "<cluster name>",
       "configdata": "<config data> "
   }
   ```
   
   **or** GET listApis include the parent struct *clusterconfig*
   
   
   ##### ACTUAL RESULTS
   GET getKubernetesClusterConfig does not match the corresponding entry in GET 
listApis 
   
   
![image](https://user-images.githubusercontent.com/26722370/231158533-5810efd1-ade6-46b3-be9a-11fea26ac0e1.png)
   
   
![image](https://user-images.githubusercontent.com/26722370/231158702-b1e55ae0-74bc-44b5-a33b-1e10d91de159.png)
   
   
   ##### CONTEXT
   
   This issue is related to https://github.com/apache/cloudstack-go/issues/55
   
   cloudstack-go is generated by GET listApis and cannot parse json response 
right now since it does not expect the parent struct *clusterconfig*
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to