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
28 changes: 0 additions & 28 deletions packages/clients/src/api/k8s/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
import {
marshalCreateClusterRequest,
marshalCreatePoolRequest,
marshalMigrateToPrivateNetworkClusterRequest,
marshalSetClusterTypeRequest,
marshalUpdateClusterRequest,
marshalUpdatePoolRequest,
Expand Down Expand Up @@ -64,7 +63,6 @@ import type {
ListVersionsRequest,
ListVersionsResponse,
MigrateClusterToRoutedIPsRequest,
MigrateToPrivateNetworkClusterRequest,
Node,
Pool,
RebootNodeRequest,
Expand Down Expand Up @@ -328,32 +326,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 an existing cluster to a Private Network cluster. Migrate a cluster
* that was created before the release of Private Network clusters to a new
* one with a Private Network.
*
* @param request - The request {@link MigrateToPrivateNetworkClusterRequest}
* @returns A Promise of Cluster
*/
migrateToPrivateNetworkCluster = (
request: Readonly<MigrateToPrivateNetworkClusterRequest>,
) =>
this.client.fetch<Cluster>(
{
body: JSON.stringify(
marshalMigrateToPrivateNetworkClusterRequest(
request,
this.client.settings,
),
),
headers: jsonContentHeaders,
method: 'POST',
path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-private-network`,
},
unmarshalCluster,
)

/**
* Migrate a cluster to Routed IPs. Migrate the nodes of an existing cluster
* to Routed IPs and enable Routed IPs for all future nodes.
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 @@ -53,7 +53,6 @@ export type {
MaintenanceWindow,
MaintenanceWindowDayOfTheWeek,
MigrateClusterToRoutedIPsRequest,
MigrateToPrivateNetworkClusterRequest,
Node,
NodeStatus,
Pool,
Expand Down
8 changes: 0 additions & 8 deletions packages/clients/src/api/k8s/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import type {
ListPoolsResponse,
ListVersionsResponse,
MaintenanceWindow,
MigrateToPrivateNetworkClusterRequest,
Node,
Pool,
PoolUpgradePolicy,
Expand Down Expand Up @@ -595,13 +594,6 @@ export const marshalCreatePoolRequest = (
zone: request.zone ?? defaults.defaultZone,
})

export const marshalMigrateToPrivateNetworkClusterRequest = (
request: MigrateToPrivateNetworkClusterRequest,
defaults: DefaultValues,
): Record<string, unknown> => ({
private_network_id: request.privateNetworkId,
})

export const marshalSetClusterTypeRequest = (
request: SetClusterTypeRequest,
defaults: DefaultValues,
Expand Down
12 changes: 0 additions & 12 deletions packages/clients/src/api/k8s/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,18 +1111,6 @@ export type MigrateClusterToRoutedIPsRequest = {
clusterId: string
}

export type MigrateToPrivateNetworkClusterRequest = {
/**
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
/** ID of the cluster to migrate. */
clusterId: string
/** ID of the Private Network to link to the cluster. */
privateNetworkId: string
}

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