diff --git a/cmd/instance/instance_create.go b/cmd/instance/instance_create.go index af3c652f..c6871e4c 100644 --- a/cmd/instance/instance_create.go +++ b/cmd/instance/instance_create.go @@ -261,7 +261,7 @@ If you wish to use a custom format, the available fields are: if len(volumes) > 0 { for _, volume := range volumes { - config.AttachedVolume = append(config.AttachedVolume, civogo.AttachedVolume{ + config.AttachedVolumes = append(config.AttachedVolumes, civogo.AttachedVolume{ ID: volume, }) } diff --git a/cmd/kubernetes/kubernetes_nodepool_create.go b/cmd/kubernetes/kubernetes_nodepool_create.go index b5c8d0ca..ec48e4b4 100644 --- a/cmd/kubernetes/kubernetes_nodepool_create.go +++ b/cmd/kubernetes/kubernetes_nodepool_create.go @@ -58,7 +58,7 @@ var kubernetesNodePoolCreateCmd = &cobra.Command{ os.Exit(1) } - poolConfig := civogo.KubernetesClusterPoolUpdateConfig{ID: poolID, Count: numTargetNodesPool, Size: targetNodesPoolSize} + poolConfig := civogo.KubernetesClusterPoolUpdateConfig{ID: poolID, Count: &numTargetNodesPool, Size: targetNodesPoolSize} if publicIpNodePool { if config.Current.RegionToFeatures != nil { if !config.Current.RegionToFeatures[client.Region].PublicIPNodePools { @@ -69,7 +69,13 @@ var kubernetesNodePoolCreateCmd = &cobra.Command{ poolConfig.PublicIPNodePool = publicIpNodePool } - kubernetesCluster, err := client.CreateKubernetesClusterPool(kubernetesFindCluster.ID, &poolConfig) + kubernetesCluster, err := client.CreateKubernetesClusterPool(kubernetesFindCluster.ID, &civogo.KubernetesClusterPoolConfig{ + Region: client.Region, + ID: poolID, + Count: numTargetNodesPool, + Size: targetNodesPoolSize, + PublicIPNodePool: publicIpNodePool, + }) if err != nil { utility.Error("%s", err) os.Exit(1) diff --git a/go.mod b/go.mod index 8315c0fa..ed0d502c 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/bradfitz/iter v0.0.0-20191230175014-e8f45d346db8 // indirect github.com/briandowns/spinner v1.11.1 github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c // indirect - github.com/civo/civogo v0.3.75 + github.com/civo/civogo v0.3.78 github.com/dsnet/compress v0.0.1 // indirect github.com/fatih/color v1.13.0 // indirect github.com/google/go-github v17.0.0+incompatible // indirect diff --git a/go.sum b/go.sum index d5b8c40c..07e57cc3 100644 --- a/go.sum +++ b/go.sum @@ -54,8 +54,8 @@ github.com/briandowns/spinner v1.11.1/go.mod h1:QOuQk7x+EaDASo80FEXwlwiA+j/PPIcX github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c h1:aprLqMn7gSPT+vdDSl+/E6NLEuArwD/J7IWd8bJt5lQ= github.com/c4milo/unpackit v0.0.0-20170704181138-4ed373e9ef1c/go.mod h1:Ie6SubJv/NTO9Q0UBH0QCl3Ve50lu9hjbi5YJUw03TE= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/civo/civogo v0.3.75 h1:hrF+ALGDV5Be/jG9NmDo2wLhL4yuD8kIOxUbVRklGNU= -github.com/civo/civogo v0.3.75/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= +github.com/civo/civogo v0.3.78 h1:F9y2Nd4VkIluUB5UGHEIjKQE/MpHqFMOcVgj39LCom8= +github.com/civo/civogo v0.3.78/go.mod h1:7UCYX+qeeJbrG55E1huv+0ySxcHTqq/26FcHLVelQJM= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=