Skip to content

Commit

Permalink
feat(k8s): expose public_ip_disabled field (scaleway#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Oct 5, 2023
1 parent 8677e4a commit 58d4945
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clients/src/api/k8s/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export const unmarshalPool = (data: unknown) => {
name: data.name,
nodeType: data.node_type,
placementGroupId: data.placement_group_id,
publicIpDisabled: data.public_ip_disabled,
region: data.region,
rootVolumeSize: data.root_volume_size,
rootVolumeType: data.root_volume_type,
Expand Down Expand Up @@ -449,6 +450,7 @@ const marshalCreateClusterRequestPoolConfig = (
name: request.name,
node_type: request.nodeType,
placement_group_id: request.placementGroupId,
public_ip_disabled: request.publicIpDisabled,
root_volume_size: request.rootVolumeSize,
root_volume_type: request.rootVolumeType,
size: request.size,
Expand Down Expand Up @@ -580,6 +582,7 @@ export const marshalCreatePoolRequest = (
name: request.name || randomName('pool'),
node_type: request.nodeType,
placement_group_id: request.placementGroupId,
public_ip_disabled: request.publicIpDisabled,
root_volume_size: request.rootVolumeSize,
root_volume_type: request.rootVolumeType ?? 'default_volume_type',
size: request.size,
Expand Down
18 changes: 18 additions & 0 deletions packages/clients/src/api/k8s/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ export interface CreateClusterRequestPoolConfig {
rootVolumeType: PoolVolumeType
/** System volume disk size. */
rootVolumeSize?: number
/**
* Defines if the public IP should be removed from Nodes. To use this feature,
* your Cluster must have an attached Private Network set up with a Public
* Gateway.
*/
publicIpDisabled: boolean
}

/** Create cluster request. pool config. upgrade policy. */
Expand Down Expand Up @@ -621,6 +627,12 @@ export interface Pool {
rootVolumeType: PoolVolumeType
/** System volume disk size. */
rootVolumeSize?: number
/**
* Defines if the public IP should be removed from Nodes. To use this feature,
* your Cluster must have an attached Private Network set up with a Public
* Gateway.
*/
publicIpDisabled: boolean
/** Cluster region of the pool. */
region: Region
}
Expand Down Expand Up @@ -1086,6 +1098,12 @@ export type CreatePoolRequest = {
rootVolumeType?: PoolVolumeType
/** System volume disk size. */
rootVolumeSize?: number
/**
* Defines if the public IP should be removed from Nodes. To use this feature,
* your Cluster must have an attached Private Network set up with a Public
* Gateway.
*/
publicIpDisabled: boolean
}

export type GetPoolRequest = {
Expand Down

0 comments on commit 58d4945

Please sign in to comment.