@scaleway/sdk-k8s 2.23.0 → 2.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,8 @@ const unmarshalVersion = (data) => {
19
19
  label: data.label,
20
20
  name: data.name,
21
21
  region: data.region,
22
- releasedAt: unmarshalDate(data.released_at)
22
+ releasedAt: unmarshalDate(data.released_at),
23
+ srn: data.srn
23
24
  };
24
25
  };
25
26
  const unmarshalMaintenanceWindow = (data) => {
@@ -91,6 +92,7 @@ const unmarshalCluster = (data) => {
91
92
  region: data.region,
92
93
  serviceCidr: data.service_cidr,
93
94
  serviceDnsIp: data.service_dns_ip,
95
+ srn: data.srn,
94
96
  status: data.status,
95
97
  tags: data.tags,
96
98
  type: data.type,
@@ -113,6 +115,7 @@ const unmarshalNode = (data) => {
113
115
  publicIpV4: data.public_ip_v4,
114
116
  publicIpV6: data.public_ip_v6,
115
117
  region: data.region,
118
+ srn: data.srn,
116
119
  status: data.status,
117
120
  updatedAt: unmarshalDate(data.updated_at)
118
121
  };
@@ -157,6 +160,7 @@ const unmarshalPool = (data) => {
157
160
  rootVolumeType: data.root_volume_type,
158
161
  securityGroupId: data.security_group_id,
159
162
  size: data.size,
163
+ srn: data.srn,
160
164
  startupTaints: unmarshalArrayOfObject(data.startup_taints, unmarshalCoreV1Taint),
161
165
  status: data.status,
162
166
  tags: data.tags,
@@ -174,7 +178,8 @@ const unmarshalACLRule = (data) => {
174
178
  id: data.id,
175
179
  ip: data.ip,
176
180
  region: data.region,
177
- scalewayRanges: data.scaleway_ranges
181
+ scalewayRanges: data.scaleway_ranges,
182
+ srn: data.srn
178
183
  };
179
184
  };
180
185
  const unmarshalAddClusterACLRulesResponse = (data) => {
@@ -208,7 +213,8 @@ const unmarshalClusterType = (data) => {
208
213
  name: data.name,
209
214
  region: data.region,
210
215
  resiliency: data.resiliency,
211
- sla: data.sla
216
+ sla: data.sla,
217
+ srn: data.srn
212
218
  };
213
219
  };
214
220
  const unmarshalListClusterAvailableTypesResponse = (data) => {
@@ -177,6 +177,10 @@ export interface ACLRule {
177
177
  * ID of the ACL rule.
178
178
  */
179
179
  id: string;
180
+ /**
181
+ * The SRN of the ACL rule.
182
+ */
183
+ srn: string;
180
184
  /**
181
185
  * IP subnet to allow.
182
186
  *
@@ -400,6 +404,10 @@ export interface ClusterType {
400
404
  * Cluster type name.
401
405
  */
402
406
  name: string;
407
+ /**
408
+ * The SRN of the cluster type.
409
+ */
410
+ srn: string;
403
411
  /**
404
412
  * Cluster type availability.
405
413
  */
@@ -446,6 +454,10 @@ export interface Version {
446
454
  * Name of the Kubernetes version.
447
455
  */
448
456
  name: string;
457
+ /**
458
+ * The SRN of the version.
459
+ */
460
+ srn: string;
449
461
  /**
450
462
  * Label of the Kubernetes version.
451
463
  */
@@ -496,6 +508,10 @@ export interface Cluster {
496
508
  * Cluster ID.
497
509
  */
498
510
  id: string;
511
+ /**
512
+ * The SRN of the cluster.
513
+ */
514
+ srn: string;
499
515
  /**
500
516
  * Cluster type.
501
517
  */
@@ -614,6 +630,10 @@ export interface Node {
614
630
  * Node ID.
615
631
  */
616
632
  id: string;
633
+ /**
634
+ * The SRN of the node.
635
+ */
636
+ srn: string;
617
637
  /**
618
638
  * Pool ID of the node.
619
639
  */
@@ -783,6 +803,10 @@ export interface Pool {
783
803
  * Maximum amount of time before the API forces the drain and deletion of a `deleting` node. It overrides pods `PodDisruptionBudget` and `terminationGracePeriodSeconds`. Defaults to 15 minutes, up to 1 hour.
784
804
  */
785
805
  maxTerminationGracePeriod?: string;
806
+ /**
807
+ * The SRN of the pool.
808
+ */
809
+ srn: string;
786
810
  /**
787
811
  * Cluster region of the pool.
788
812
  */
@@ -11,6 +11,7 @@ export declare const CoreV1Taint: {
11
11
  };
12
12
  value: {
13
13
  maxLength: number;
14
+ pattern: RegExp;
14
15
  };
15
16
  };
16
17
  export declare const CreateClusterRequest: {
@@ -27,7 +27,10 @@ const CoreV1Taint = {
27
27
  minLength: 1,
28
28
  pattern: /^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*\/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/
29
29
  },
30
- value: { maxLength: 63 }
30
+ value: {
31
+ maxLength: 63,
32
+ pattern: /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$/
33
+ }
31
34
  };
32
35
  const CreateClusterRequest = {
33
36
  description: { maxLength: 4096 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-k8s",
3
- "version": "2.23.0",
3
+ "version": "2.24.0",
4
4
  "description": "Scaleway SDK k8s",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@scaleway/random-name": "6.0.2",
36
- "@scaleway/sdk-std": "2.8.0"
36
+ "@scaleway/sdk-std": "2.8.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.8.0"
40
+ "@scaleway/sdk-client": "^2.9.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.8.0"
43
+ "@scaleway/sdk-client": "^2.9.0"
44
44
  },
45
45
  "scripts": {
46
46
  "package:check": "pnpm publint",