Skip to content

Commit 41c840e

Browse files
authored
feat(k8s): remove MigrateToPrivateNetwork rpc (#1297)
1 parent 5f2a018 commit 41c840e

File tree

4 files changed

+0
-49
lines changed

4 files changed

+0
-49
lines changed

packages/clients/src/api/k8s/v1/api.gen.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
import {
1717
marshalCreateClusterRequest,
1818
marshalCreatePoolRequest,
19-
marshalMigrateToPrivateNetworkClusterRequest,
2019
marshalSetClusterTypeRequest,
2120
marshalUpdateClusterRequest,
2221
marshalUpdatePoolRequest,
@@ -64,7 +63,6 @@ import type {
6463
ListVersionsRequest,
6564
ListVersionsResponse,
6665
MigrateClusterToRoutedIPsRequest,
67-
MigrateToPrivateNetworkClusterRequest,
6866
Node,
6967
Pool,
7068
RebootNodeRequest,
@@ -328,32 +326,6 @@ export class API extends ParentAPI {
328326
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`,
329327
})
330328

331-
/**
332-
* Migrate an existing cluster to a Private Network cluster. Migrate a cluster
333-
* that was created before the release of Private Network clusters to a new
334-
* one with a Private Network.
335-
*
336-
* @param request - The request {@link MigrateToPrivateNetworkClusterRequest}
337-
* @returns A Promise of Cluster
338-
*/
339-
migrateToPrivateNetworkCluster = (
340-
request: Readonly<MigrateToPrivateNetworkClusterRequest>,
341-
) =>
342-
this.client.fetch<Cluster>(
343-
{
344-
body: JSON.stringify(
345-
marshalMigrateToPrivateNetworkClusterRequest(
346-
request,
347-
this.client.settings,
348-
),
349-
),
350-
headers: jsonContentHeaders,
351-
method: 'POST',
352-
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-private-network`,
353-
},
354-
unmarshalCluster,
355-
)
356-
357329
/**
358330
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
359331
* to Routed IPs and enable Routed IPs for all future nodes.

packages/clients/src/api/k8s/v1/index.gen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export type {
5353
MaintenanceWindow,
5454
MaintenanceWindowDayOfTheWeek,
5555
MigrateClusterToRoutedIPsRequest,
56-
MigrateToPrivateNetworkClusterRequest,
5756
Node,
5857
NodeStatus,
5958
Pool,

packages/clients/src/api/k8s/v1/marshalling.gen.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import type {
3232
ListPoolsResponse,
3333
ListVersionsResponse,
3434
MaintenanceWindow,
35-
MigrateToPrivateNetworkClusterRequest,
3635
Node,
3736
Pool,
3837
PoolUpgradePolicy,
@@ -595,13 +594,6 @@ export const marshalCreatePoolRequest = (
595594
zone: request.zone ?? defaults.defaultZone,
596595
})
597596

598-
export const marshalMigrateToPrivateNetworkClusterRequest = (
599-
request: MigrateToPrivateNetworkClusterRequest,
600-
defaults: DefaultValues,
601-
): Record<string, unknown> => ({
602-
private_network_id: request.privateNetworkId,
603-
})
604-
605597
export const marshalSetClusterTypeRequest = (
606598
request: SetClusterTypeRequest,
607599
defaults: DefaultValues,

packages/clients/src/api/k8s/v1/types.gen.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,18 +1111,6 @@ export type MigrateClusterToRoutedIPsRequest = {
11111111
clusterId: string
11121112
}
11131113

1114-
export type MigrateToPrivateNetworkClusterRequest = {
1115-
/**
1116-
* Region to target. If none is passed will use default region from the
1117-
* config.
1118-
*/
1119-
region?: Region
1120-
/** ID of the cluster to migrate. */
1121-
clusterId: string
1122-
/** ID of the Private Network to link to the cluster. */
1123-
privateNetworkId: string
1124-
}
1125-
11261114
export type RebootNodeRequest = {
11271115
/**
11281116
* Region to target. If none is passed will use default region from the

0 commit comments

Comments
 (0)