Skip to content

Commit 58d4945

Browse files
authored
feat(k8s): expose public_ip_disabled field (#907)
1 parent 8677e4a commit 58d4945

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export const unmarshalPool = (data: unknown) => {
230230
name: data.name,
231231
nodeType: data.node_type,
232232
placementGroupId: data.placement_group_id,
233+
publicIpDisabled: data.public_ip_disabled,
233234
region: data.region,
234235
rootVolumeSize: data.root_volume_size,
235236
rootVolumeType: data.root_volume_type,
@@ -449,6 +450,7 @@ const marshalCreateClusterRequestPoolConfig = (
449450
name: request.name,
450451
node_type: request.nodeType,
451452
placement_group_id: request.placementGroupId,
453+
public_ip_disabled: request.publicIpDisabled,
452454
root_volume_size: request.rootVolumeSize,
453455
root_volume_type: request.rootVolumeType,
454456
size: request.size,
@@ -580,6 +582,7 @@ export const marshalCreatePoolRequest = (
580582
name: request.name || randomName('pool'),
581583
node_type: request.nodeType,
582584
placement_group_id: request.placementGroupId,
585+
public_ip_disabled: request.publicIpDisabled,
583586
root_volume_size: request.rootVolumeSize,
584587
root_volume_type: request.rootVolumeType ?? 'default_volume_type',
585588
size: request.size,

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,12 @@ export interface CreateClusterRequestPoolConfig {
430430
rootVolumeType: PoolVolumeType
431431
/** System volume disk size. */
432432
rootVolumeSize?: number
433+
/**
434+
* Defines if the public IP should be removed from Nodes. To use this feature,
435+
* your Cluster must have an attached Private Network set up with a Public
436+
* Gateway.
437+
*/
438+
publicIpDisabled: boolean
433439
}
434440

435441
/** Create cluster request. pool config. upgrade policy. */
@@ -621,6 +627,12 @@ export interface Pool {
621627
rootVolumeType: PoolVolumeType
622628
/** System volume disk size. */
623629
rootVolumeSize?: number
630+
/**
631+
* Defines if the public IP should be removed from Nodes. To use this feature,
632+
* your Cluster must have an attached Private Network set up with a Public
633+
* Gateway.
634+
*/
635+
publicIpDisabled: boolean
624636
/** Cluster region of the pool. */
625637
region: Region
626638
}
@@ -1086,6 +1098,12 @@ export type CreatePoolRequest = {
10861098
rootVolumeType?: PoolVolumeType
10871099
/** System volume disk size. */
10881100
rootVolumeSize?: number
1101+
/**
1102+
* Defines if the public IP should be removed from Nodes. To use this feature,
1103+
* your Cluster must have an attached Private Network set up with a Public
1104+
* Gateway.
1105+
*/
1106+
publicIpDisabled: boolean
10891107
}
10901108

10911109
export type GetPoolRequest = {

0 commit comments

Comments
 (0)