Giter Club home page Giter Club logo

Comments (6)

hkantare avatar hkantare commented on June 27, 2024 1

@mihivagyok Can you comment on this

from bluemix-go.

mihivagyok avatar mihivagyok commented on June 27, 2024

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

from bluemix-go.

mihivagyok avatar mihivagyok commented on June 27, 2024

Or please use the GetClusterConfigDetail function instead. I think that is the proper function. Thanks!

from bluemix-go.

mihivagyok avatar mihivagyok commented on June 27, 2024

@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

from bluemix-go.

mihivagyok avatar mihivagyok commented on June 27, 2024

#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!

from bluemix-go.

mihivagyok avatar mihivagyok commented on June 27, 2024

@vinayakshnd
Hi! Do you have any update? Does my proposed change work for you?

Thanks,
Adam

from bluemix-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.