Skip to content

chore(k8s): remove sbs-csi migration route #2050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025
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
19 changes: 0 additions & 19 deletions packages_generated/k8s/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ import type {
ListPoolsResponse,
ListVersionsRequest,
ListVersionsResponse,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
Pool,
Expand Down Expand Up @@ -334,24 +333,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 SBS CSI. Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS.
Make sure to have the necessary Quota before running this command.
*
* @param request - The request {@link MigrateClusterToSBSCSIRequest}
* @returns A Promise of Cluster
*/
migrateClusterToSBSCSI = (request: Readonly<MigrateClusterToSBSCSIRequest>) =>
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-sbs-csi`,
},
unmarshalCluster,
)

protected pageOfListClusterACLRules = (
request: Readonly<ListClusterACLRulesRequest>,
) =>
Expand Down
1 change: 0 additions & 1 deletion packages_generated/k8s/src/v1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export type {
ListVersionsResponse,
MaintenanceWindow,
MaintenanceWindowDayOfTheWeek,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
NodeMetadataCoreV1Taint,
Expand Down
11 changes: 0 additions & 11 deletions packages_generated/k8s/src/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1465,17 +1465,6 @@ export interface ListVersionsResponse {
versions: Version[]
}

export type MigrateClusterToSBSCSIRequest = {
/**
* Region to target. If none is passed will use default region from the config.
*/
region?: ScwRegion
/**
* Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled.
*/
clusterId: string
}

export interface NodeMetadata {
id: string
name: string
Expand Down
Loading