@@ -1821,15 +1821,6 @@ type ListVersionsResponse struct {
18211821 Versions []* Version `json:"versions"`
18221822}
18231823
1824- // MigrateClusterToRoutedIPsRequest: migrate cluster to routed i ps request.
1825- type MigrateClusterToRoutedIPsRequest struct {
1826- // Region: region to target. If none is passed will use default region from the config.
1827- Region scw.Region `json:"-"`
1828-
1829- // ClusterID: cluster ID for which the routed ip will be enabled for the nodes.
1830- ClusterID string `json:"-"`
1831- }
1832-
18331824// MigrateClusterToSBSCSIRequest: migrate cluster to sbscsi request.
18341825type MigrateClusterToSBSCSIRequest struct {
18351826 // Region: region to target. If none is passed will use default region from the config.
@@ -2416,42 +2407,6 @@ func (s *API) ResetClusterAdminToken(req *ResetClusterAdminTokenRequest, opts ..
24162407 return nil
24172408}
24182409
2419- // MigrateClusterToRoutedIPs: Migrate the nodes of an existing cluster to Routed IPs and enable Routed IPs for all future nodes.
2420- func (s * API ) MigrateClusterToRoutedIPs (req * MigrateClusterToRoutedIPsRequest , opts ... scw.RequestOption ) (* Cluster , error ) {
2421- var err error
2422-
2423- if req .Region == "" {
2424- defaultRegion , _ := s .client .GetDefaultRegion ()
2425- req .Region = defaultRegion
2426- }
2427-
2428- if fmt .Sprint (req .Region ) == "" {
2429- return nil , errors .New ("field Region cannot be empty in request" )
2430- }
2431-
2432- if fmt .Sprint (req .ClusterID ) == "" {
2433- return nil , errors .New ("field ClusterID cannot be empty in request" )
2434- }
2435-
2436- scwReq := & scw.ScalewayRequest {
2437- Method : "POST" ,
2438- Path : "/k8s/v1/regions/" + fmt .Sprint (req .Region ) + "/clusters/" + fmt .Sprint (req .ClusterID ) + "/migrate-to-routed-ips" ,
2439- }
2440-
2441- err = scwReq .SetBody (req )
2442- if err != nil {
2443- return nil , err
2444- }
2445-
2446- var resp Cluster
2447-
2448- err = s .client .Do (scwReq , & resp , opts ... )
2449- if err != nil {
2450- return nil , err
2451- }
2452- return & resp , nil
2453- }
2454-
24552410// MigrateClusterToSBSCSI: Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
24562411func (s * API ) MigrateClusterToSBSCSI (req * MigrateClusterToSBSCSIRequest , opts ... scw.RequestOption ) (* Cluster , error ) {
24572412 var err error
0 commit comments