Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions packages/clients/src/api/k8s/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import type {
ListPoolsResponse,
ListVersionsRequest,
ListVersionsResponse,
MigrateClusterToRoutedIPsRequest,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
Expand Down Expand Up @@ -333,26 +332,6 @@ export class API extends ParentAPI {
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`,
})

/**
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
* to Routed IPs and enable Routed IPs for all future nodes.
*
* @param request - The request {@link MigrateClusterToRoutedIPsRequest}
* @returns A Promise of Cluster
*/
migrateClusterToRoutedIPs = (
request: Readonly<MigrateClusterToRoutedIPsRequest>,
) =>
this.client.fetch<Cluster>(
{
body: '{}',
headers: jsonContentHeaders,
method: 'POST',
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-routed-ips`,
},
unmarshalCluster,
)

/**
* Migrate a cluster to SBS CSI. Enable the latest CSI compatible with
* Scaleway Block Storage (SBS) and migrate all existing
Expand Down
1 change: 0 additions & 1 deletion packages/clients/src/api/k8s/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export type {
ListVersionsResponse,
MaintenanceWindow,
MaintenanceWindowDayOfTheWeek,
MigrateClusterToRoutedIPsRequest,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
Expand Down
10 changes: 0 additions & 10 deletions packages/clients/src/api/k8s/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1140,16 +1140,6 @@ export interface ListVersionsResponse {
versions: Version[]
}

export type MigrateClusterToRoutedIPsRequest = {
/**
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
/** Cluster ID for which the routed ip will be enabled for the nodes. */
clusterId: string
}

export type MigrateClusterToSBSCSIRequest = {
/**
* Region to target. If none is passed will use default region from the
Expand Down