-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: any plan to support classic clusters in v2container #200
Comments
@hkantare I only see the |
We have Get and List also calling to v2
|
https://containers.cloud.ibm.com/global/swagger-global-api/#/ |
That is exactly my question... in above swagger API doc, there are The reason I am asking this question is I tried to follow the example https://github.com/IBM-Cloud/bluemix-go/blob/master/examples/container/V2containers/CreateClusterV2/main.go to create a cluster, it did not work. And I had to switch back to v1 and it worked with v1. My code looks like this: log.Infoln("Start to create an IKS cluster. It may take a while...")
c := new(bluemix.Config)
c.IAMAccessToken = auth.accessToken
c.IAMRefreshToken = auth.refreshToken
trace.Logger = trace.NewLogger("true")
var clusterInfo = v1.ClusterCreateRequest{
Name: cluster.name,
Datacenter: cluster.dataCenter,
MachineType: cluster.machineType,
WorkerNum: cluster.workerNum,
PrivateVlan: cluster.privateVlan,
PublicVlan: cluster.publicVlan,
}
sess, err := session.New(c)
if err != nil {
log.Errorf("%v", err)
}
target := v1.ClusterTargetHeader{}
target.Region = cluster.region
clusterClient, err := v1.New(sess)
if err != nil {
log.Errorf("%v", err)
}
clustersAPI := clusterClient.Clusters()
// create the cluster, the return response contains the ID
out, err := clustersAPI.Create(clusterInfo, target)
if err != nil {
log.Errorf("%v", err)
}... So I am not sure what difference is between |
Actually we types of clusters (classic cluster , VPC clusters) |
It seems that the v2container all resolves to
/v2/vpc
path for get, list, create, delete clusters. Is there any plan to support theclassic
type?Or people should just use v1container for those type of clusters?
Thanks.
The text was updated successfully, but these errors were encountered: