Open vinayakshnd opened 8 months ago
@mihivagyok Can you comment on this
Hi @vinayakshnd !
What is the value of the cMeta *ClusterInfo
in your case?
But maybe you cannot do that.
So can you try the example code? https://github.com/IBM-Cloud/bluemix-go/tree/5c31bb9104f76d6bb96ab6667a521c98f8873d31/examples/container/download_config
I believe you cannot get some clusterData and that's why some parameters are empty in your case.
Thanks! Adam
Or please use the GetClusterConfigDetail
function instead. I think that is the proper function. Thanks!
@vinayakshnd
So the code you are using is not updated in past years. Also, the ROKS 4.13 has changed: it uses VPE Gateway as MasterURL, so the code tries to connect to that. Unfortunately, the code does not check for error, and that's why it is panic. But the main problem is the access problem: you cannot access the VPE Gateway from your client. https://cloud.ibm.com/docs/openshift?topic=openshift-cs_versions_413#413_before
My advise is to use the containersv2/GetClusterConfigDetail
function and set the endpoint
parameter to private
. That will solve the issue for you.
I can add some error handling, but it won't solve your issue.
Thanks! Adam
https://github.com/IBM-Cloud/bluemix-go/pull/409
With this, you would get something like this:
2023/11/07 18:12:38 Get "https://ckk2620l0jks2kmn46bg.vpe.private.eu-gb.containers.cloud.ibm.com:30766/.well-known/oauth-authorization-server": dial tcp: lookup ckk2620l0jks2kmn46bg.vpe.private.eu-gb.containers.cloud.ibm.com: no such host
exit status 1
More detail on endpoint parameter: https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/data-sources/container_cluster_config
Thanks!
@vinayakshnd Hi! Do you have any update? Does my proposed change work for you?
Thanks, Adam
In order to fetch kubeconfig for private ROKS cluster v4.13.15_1543 using below API https://github.com/IBM-Cloud/bluemix-go/blob/5c31bb9104f76d6bb96ab6667a521c98f8873d31/api/container/containerv1/clusters.go#L398
I am seeing below error:
Notes:
bluemix-go@v0.0.0-20231026045515-5c31bb9104f7