saffronjam commented on PR #56:
URL: https://github.com/apache/cloudstack-go/pull/56#issuecomment-1497413807

   I completely oversaw the fact the issue is actually related to Cloudstack 
API discovery, or the API route itself.
   
   Using cmk "list apis" we obviously get the identical file that is aleady 
present: `generate/listApis.json`
   
   `listApis.json` is incorrectly specifying the getKubernetesClusterConfig to 
_not_ be a nested struct.
   
   OR
   
   The route getKubernetesClusterConfig itself is incorrect.
   
   Either way, this is a fault in our go-client :)
   
   The entry in `listApis.json` for reference:
   ```
   {
         "description": "Get Kubernetes cluster config",
         "isasync": false,
         "name": "getKubernetesClusterConfig",
         "params": [
           {
             "description": "the ID of the Kubernetes cluster",
             "length": 255,
             "name": "id",
             "related": 
"createKubernetesCluster,startKubernetesCluster,upgradeKubernetesCluster",
             "required": false,
             "type": "uuid"
           }
         ],
         "related": "",
         "response": [
           {
             "description": "Name of the container cluster",
             "name": "name",
             "type": "string"
           },
           {},
           {
             "description": "the id of the container cluster",
             "name": "id",
             "type": "string"
           },
           {
             "description": "the current status of the latest async job acting 
on this object",
             "name": "jobstatus",
             "type": "integer"
           },
           {
             "description": "the UUID of the latest async job acting on this 
object",
             "name": "jobid",
             "type": "string"
           },
           {
             "description": "the config data of the cluster",
             "name": "configdata",
             "type": "string"
           },
           {}
         ]
   },
   ```
   
   


-- 
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: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to