Skip to content

Commit 5988b6a

Browse files
authored
fix(k8s): remove WaitForClusterPools (#334)
Signed-off-by: Patrik Cyvoct <[email protected]>
1 parent 652d928 commit 5988b6a

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

api/k8s/v1beta4/k8s_helpers.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -64,35 +64,6 @@ type WaitForClusterPoolsRequest struct {
6464
Timeout *time.Duration
6565
}
6666

67-
// WaitForClusterPools waits for the pools of a cluster to be ready
68-
func (s *API) WaitForClusterPools(req *WaitForClusterPoolsRequest) error {
69-
timeout := waitForPoolDefaultTimeout
70-
if req.Timeout != nil {
71-
timeout = *req.Timeout
72-
}
73-
74-
pools, err := s.ListPools(&ListPoolsRequest{
75-
ClusterID: req.ClusterID,
76-
Region: req.Region,
77-
})
78-
if err != nil {
79-
return err
80-
}
81-
82-
for _, pool := range pools.Pools {
83-
err = s.WaitForPool(&WaitForPoolRequest{
84-
PoolID: pool.ID,
85-
Timeout: &timeout,
86-
})
87-
88-
if err != nil {
89-
return err
90-
}
91-
}
92-
93-
return nil
94-
}
95-
9667
// WaitForPoolRequest is used by WaitForPool method.
9768
type WaitForPoolRequest struct {
9869
PoolID string

0 commit comments

Comments
 (0)