Skip to content

Commit 7d7a849

Browse files
authored
feat(k8s): add replace and skipDrain options when deleting a node (#40)
1 parent e57e729 commit 7d7a849

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ export class K8SV1GenAPI extends API {
609609
'region',
610610
request.region ?? this.client.settings.defaultRegion,
611611
)}/nodes/${validatePathParam('nodeId', request.nodeId)}`,
612+
urlParams: urlParams(
613+
['replace', request.replace],
614+
['skip_drain', request.skipDrain],
615+
),
612616
},
613617
unmarshalNode,
614618
)

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,12 @@ export type RebootNodeRequest = {
10041004
export type DeleteNodeRequest = {
10051005
/** Region to target. If none is passed will use default region from the config */
10061006
region?: Region
1007+
/** The ID of the node to replace */
10071008
nodeId: string
1009+
/** Skip draining node from its workload */
1010+
skipDrain: boolean
1011+
/** Add a new node after the deletion of this node */
1012+
replace: boolean
10081013
}
10091014

10101015
export type ListVersionsRequest = {

0 commit comments

Comments
 (0)