diff --git a/pool.go b/pool.go index 53ef839..9b0a588 100644 --- a/pool.go +++ b/pool.go @@ -36,7 +36,7 @@ func (c *Client) ListKubernetesClusterPools(cid string) ([]KubernetesPool, error } // CreateKubernetesClusterPool update a single kubernetes cluster by its full ID -func (c *Client) CreateKubernetesClusterPool(id string, i *KubernetesClusterPoolUpdateConfig) (*SimpleResponse, error) { +func (c *Client) CreateKubernetesClusterPool(id string, i *KubernetesClusterPoolConfig) (*SimpleResponse, error) { i.Region = c.Region resp, err := c.SendPostRequest(fmt.Sprintf("/v2/kubernetes/clusters/%s/pools", id), i) if err != nil { diff --git a/pool_test.go b/pool_test.go index deca4fe..ff3a3b5 100644 --- a/pool_test.go +++ b/pool_test.go @@ -13,9 +13,9 @@ func TestCreateKubernetesClusterPool(t *testing.T) { }) defer server.Close() - newPool := &KubernetesClusterPoolUpdateConfig{ + newPool := &KubernetesClusterPoolConfig{ ID: "8a849cc5-bd51-45ce-814a-c378b09dcb06", - Count: &[]int{3}[0], + Count: 3, Size: "g4s.kube.small", Labels: map[string]string{}, Taints: []corev1.Taint{},