Skip to content

Commit

Permalink
Update worker pool request method from PUT to PATCH in KubernetesClus…
Browse files Browse the repository at this point in the history
…tersService.UpdateWorkerPool(). (#57)

Co-authored-by: hrybun <[email protected]>
  • Loading branch information
hrybun and hrybun authored Feb 15, 2024
1 parent 1bf65d8 commit 6a58d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ah/kubernetes_workers_pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (kcs *KubernetesClustersService) CreateWorkerPool(ctx context.Context, clus
// UpdateWorkerPool updates worker pool
func (kcs *KubernetesClustersService) UpdateWorkerPool(ctx context.Context, clusterId, workerPoolId string, request *UpdateKubernetesWorkerPoolRequest) error {
path := fmt.Sprintf("api/v2/kubernetes/clusters/%s/worker_pools/%s", clusterId, workerPoolId)
req, err := kcs.client.newRequest(http.MethodPut, path, request)
req, err := kcs.client.newRequest(http.MethodPatch, path, request)
if err != nil {
return err
}
Expand Down

0 comments on commit 6a58d11

Please sign in to comment.