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
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
@@ -77,7 +77,6 @@ import type {
ListPoolsResponse,
ListVersionsRequest,
ListVersionsResponse,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
Pool,
@@ -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>,
) =>
1 change: 0 additions & 1 deletion packages_generated/k8s/src/v1/index.gen.ts
Original file line number Diff line number Diff line change
@@ -63,7 +63,6 @@ export type {
ListVersionsResponse,
MaintenanceWindow,
MaintenanceWindowDayOfTheWeek,
MigrateClusterToSBSCSIRequest,
Node,
NodeMetadata,
NodeMetadataCoreV1Taint,
11 changes: 0 additions & 11 deletions packages_generated/k8s/src/v1/types.gen.ts
Original file line number Diff line number Diff line change
@@ -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

Unchanged files with check annotations Beta

const marshalQualificationAiMachine = (
request: QualificationAiMachine,
defaults: DefaultValues,

Check warning on line 354 in packages_generated/account/src/v3/marshalling.gen.ts

GitHub Actions / lint

'defaults' is defined but never used
): Record<string, unknown> => ({
sub_use_case: request.subUseCase,
})
const marshalQualificationArchiveData = (
request: QualificationArchiveData,
defaults: DefaultValues,

Check warning on line 361 in packages_generated/account/src/v3/marshalling.gen.ts

GitHub Actions / lint

'defaults' is defined but never used
): Record<string, unknown> => ({
sub_use_case: request.subUseCase,
})
const marshalQualificationContainer = (
request: QualificationContainer,
defaults: DefaultValues,

Check warning on line 368 in packages_generated/account/src/v3/marshalling.gen.ts

GitHub Actions / lint

'defaults' is defined but never used
): Record<string, unknown> => ({
sub_use_case: request.subUseCase,
})
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import {

Check warning on line 3 in packages_generated/account/src/v3/api.gen.ts

GitHub Actions / lint

File has too many classes (2). Maximum allowed is 1
API as ParentAPI,
enrichForPagination,
urlParams,
*
* @public
*/
export type Profile = {

Check warning on line 6 in packages/configuration-loader/src/types.ts

GitHub Actions / lint

Use an `interface` instead of a `type`
/**
* You need an access key and a secret key to connect to Scaleway API.
* Generate your token at the following address: {@link https://console.scaleway.com/project/credentials}
/** Configuration type. */
export type ConfigurationType = Record<string, Record<string, string>>
/** Parameters to load the all the profiles from the configuration file */
export type AllProfilesFromFileParams = {

Check warning on line 51 in packages/configuration-loader/src/types.ts

GitHub Actions / lint

Use an `interface` instead of a `type`
/**
* The path at which to locate the configuration file.
*
let prevError = error
for (const interceptor of interceptors) {
try {
const res = await interceptor({ request, error: prevError })

Check warning on line 52 in packages/client/src/internal/interceptors/composer.ts

GitHub Actions / lint

Unexpected `await` inside a loop
return res
} catch (err) {
// Break if timeout has been reached
if (timeoutTimestamp <= Date.now() + delay) break
// Wait before the next retry
await sleep(delay)

Check warning on line 118 in packages/client/src/internal/async/interval-retrier.ts

GitHub Actions / lint

Unexpected `await` inside a loop
// Retry
const { value, done } = await retry()

Check warning on line 120 in packages/client/src/internal/async/interval-retrier.ts

GitHub Actions / lint

Unexpected `await` inside a loop
if (done) return value
}
* @internal
*/
export const camelizeKeys = <T>(
obj: object | unknown[] | unknown,

Check warning on line 89 in packages/client/src/helpers/json.ts

GitHub Actions / lint

'unknown' overrides all other types in this union type
ignoreKeys: string[] = [],
): T => {
if (Array.isArray(obj)) {