Skip to content

Commit

Permalink
fix create pool
Browse files Browse the repository at this point in the history
  • Loading branch information
fulviodenza committed Sep 4, 2024
1 parent 1ab4ce3 commit f4fdae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit f4fdae4

Please sign in to comment.