Skip to content

Commit 5ef73ef

Browse files
feat(k8s): add upgrading pool status (#319)
1 parent 4cb2846 commit 5ef73ef

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

api/k8s/v1beta4/k8s_sdk.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,14 +478,16 @@ const (
478478
PoolStatusDeleted = PoolStatus("deleted")
479479
// PoolStatusUpdating is [insert doc].
480480
PoolStatusUpdating = PoolStatus("updating")
481-
// PoolStatusScalling is [insert doc].
482-
PoolStatusScalling = PoolStatus("scalling")
481+
// PoolStatusScaling is [insert doc].
482+
PoolStatusScaling = PoolStatus("scaling")
483483
// PoolStatusWarning is [insert doc].
484484
PoolStatusWarning = PoolStatus("warning")
485485
// PoolStatusError is [insert doc].
486486
PoolStatusError = PoolStatus("error")
487487
// PoolStatusLocked is [insert doc].
488488
PoolStatusLocked = PoolStatus("locked")
489+
// PoolStatusUpgrading is [insert doc].
490+
PoolStatusUpgrading = PoolStatus("upgrading")
489491
)
490492

491493
func (enum PoolStatus) String() string {
@@ -865,7 +867,7 @@ type ListClustersRequest struct {
865867
Page *int32 `json:"-"`
866868
// PageSize the maximum number of clusters per page
867869
PageSize *uint32 `json:"-"`
868-
// Name the name on which to filter the retured clusters
870+
// Name the name on which to filter the returned clusters
869871
Name *string `json:"-"`
870872
// Status the status on which to filter the returned clusters
871873
//
@@ -1354,8 +1356,12 @@ type ListPoolsRequest struct {
13541356
Page *int32 `json:"-"`
13551357
// PageSize the maximum number of pools per page
13561358
PageSize *uint32 `json:"-"`
1357-
// Name the name on which to filter the retured clusters
1359+
// Name the name on which to filter the returned pools
13581360
Name *string `json:"-"`
1361+
// Status the status on which to filter the returned pools
1362+
//
1363+
// Default value: unknown
1364+
Status PoolStatus `json:"-"`
13591365
}
13601366

13611367
// ListPools list all the pools in a cluster
@@ -1379,6 +1385,7 @@ func (s *API) ListPools(req *ListPoolsRequest, opts ...scw.RequestOption) (*List
13791385
parameter.AddToQuery(query, "page", req.Page)
13801386
parameter.AddToQuery(query, "page_size", req.PageSize)
13811387
parameter.AddToQuery(query, "name", req.Name)
1388+
parameter.AddToQuery(query, "status", req.Status)
13821389

13831390
if fmt.Sprint(req.Region) == "" {
13841391
return nil, errors.New("field Region cannot be empty in request")
@@ -1694,7 +1701,7 @@ type ListNodesRequest struct {
16941701
Page *int32 `json:"-"`
16951702
// PageSize the maximum number of nodes per page
16961703
PageSize *uint32 `json:"-"`
1697-
// Name the name on which to filter the retured nodes
1704+
// Name the name on which to filter the returned nodes
16981705
Name *string `json:"-"`
16991706
// Status the status on which to filter the returned nodes
17001707
//

0 commit comments

Comments
 (0)