diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index 183962f09..2ad0254b0 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -550,6 +550,7 @@ export class K8SV1GenAPI extends API { * pods (in a one node cluster for instance), you may experience some * disruption of your applications. * + * @deprecated * @param request - The request {@link ReplaceNodeRequest} * @returns A Promise of Node */ @@ -592,6 +593,14 @@ export class K8SV1GenAPI extends API { unmarshalNode, ) + /** + * This method allows to delete a specific node. Note that when there is not + * enough space to reschedule all the pods (in a one node cluster for + * instance), you may experience some disruption of your applications. + * + * @param request - The request {@link DeleteNodeRequest} + * @returns A Promise of Node + */ deleteNode = (request: Readonly) => this.client.fetch( { diff --git a/packages/clients/src/api/k8s/v1/content.gen.ts b/packages/clients/src/api/k8s/v1/content.gen.ts index 4dc8a51c6..575be7a95 100644 --- a/packages/clients/src/api/k8s/v1/content.gen.ts +++ b/packages/clients/src/api/k8s/v1/content.gen.ts @@ -15,6 +15,7 @@ export const NODE_TRANSIENT_STATUSES: NodeStatus[] = [ 'deleting', 'rebooting', 'upgrading', + 'starting', ] /** Lists transient statutes of the enum {@link PoolStatus}. */ diff --git a/packages/clients/src/api/k8s/v1/marshalling.gen.ts b/packages/clients/src/api/k8s/v1/marshalling.gen.ts index 066a6166f..9c0a59b48 100644 --- a/packages/clients/src/api/k8s/v1/marshalling.gen.ts +++ b/packages/clients/src/api/k8s/v1/marshalling.gen.ts @@ -170,6 +170,7 @@ export const unmarshalNode = (data: unknown) => { clusterId: data.cluster_id, conditions: data.conditions, createdAt: unmarshalDate(data.created_at), + errorMessage: data.error_message, id: data.id, name: data.name, poolId: data.pool_id, diff --git a/packages/clients/src/api/k8s/v1/types.gen.ts b/packages/clients/src/api/k8s/v1/types.gen.ts index 8837f5ae7..991cb4962 100644 --- a/packages/clients/src/api/k8s/v1/types.gen.ts +++ b/packages/clients/src/api/k8s/v1/types.gen.ts @@ -84,6 +84,7 @@ export type NodeStatus = | 'rebooting' | 'creation_error' | 'upgrading' + | 'starting' export type PoolStatus = | 'unknown' @@ -461,12 +462,14 @@ export interface Node { /** The public IPv6 address of the node */ publicIpV6?: string /** - * These conditions contains the Node Problem Detector conditions, as well as - * some in house conditions. + * @deprecated These conditions contains the Node Problem Detector conditions, + * as well as some in house conditions. */ - conditions: Record + conditions?: Record /** The status of the node */ status: NodeStatus + /** Details of the error, if any occured when managing the node */ + errorMessage?: string /** The date at which the node was created */ createdAt?: Date /** The date at which the node was last updated */