File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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.
9768type WaitForPoolRequest struct {
9869 PoolID string
You can’t perform that action at this time.
0 commit comments