Skip to content

Commit bcfee00

Browse files
authored
feat(k8s): add resiliency and sla to cluster types (#759)
1 parent 250d383 commit bcfee00

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export type {
1313
ClusterStatus,
1414
ClusterType,
1515
ClusterTypeAvailability,
16+
ClusterTypeResiliency,
1617
CreateClusterRequest,
1718
CreateClusterRequestAutoUpgrade,
1819
CreateClusterRequestAutoscalerConfig,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ const unmarshalClusterType = (data: unknown) => {
179179
commitmentDelay: data.commitment_delay,
180180
maxNodes: data.max_nodes,
181181
name: data.name,
182+
resiliency: data.resiliency,
183+
sla: data.sla,
182184
} as ClusterType
183185
}
184186

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ export type ClusterStatus =
3232

3333
export type ClusterTypeAvailability = 'available' | 'scarce' | 'shortage'
3434

35+
export type ClusterTypeResiliency =
36+
| 'unknown_resiliency'
37+
| 'standard'
38+
| 'high_availability'
39+
3540
export type Ingress =
3641
| 'unknown_ingress'
3742
| 'none'
@@ -270,6 +275,10 @@ export interface ClusterType {
270275
maxNodes: number
271276
/** Time period during which you can no longer switch to a lower offer. */
272277
commitmentDelay?: string
278+
/** Value of the Service Level Agreement of the offer. */
279+
sla: number
280+
/** Resiliency offered by the offer. */
281+
resiliency: ClusterTypeResiliency
273282
}
274283

275284
/** Create cluster request. auto upgrade. */

0 commit comments

Comments
 (0)