@scaleway/sdk-k8s 2.14.0 → 2.15.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.
- package/dist/v1/api.gen.d.ts +1 -8
- package/dist/v1/api.gen.js +1 -7
- package/dist/v1/index.gen.d.ts +1 -1
- package/dist/v1/index.gen.js +2 -2
- package/dist/v1/marshalling.gen.d.ts +1 -2
- package/dist/v1/marshalling.gen.js +2 -28
- package/dist/v1/types.gen.d.ts +27 -33
- package/package.json +1 -1
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
2
|
import type { WaitForOptions, ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
-
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest,
|
|
3
|
+
import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* Kubernetes API.
|
|
6
6
|
|
|
@@ -215,13 +215,6 @@ export declare class API extends ParentAPI {
|
|
|
215
215
|
* @returns A Promise of ExternalNodeAuth
|
|
216
216
|
*/
|
|
217
217
|
authExternalNode: (request: Readonly<AuthExternalNodeRequest>) => Promise<ExternalNodeAuth>;
|
|
218
|
-
/**
|
|
219
|
-
* Create a Kosmos node. Retrieve metadata for a Kosmos node. This method is not intended to be called by end users but rather programmatically by the kapsule-node-agent.
|
|
220
|
-
*
|
|
221
|
-
* @param request - The request {@link CreateExternalNodeRequest}
|
|
222
|
-
* @returns A Promise of ExternalNode
|
|
223
|
-
*/
|
|
224
|
-
createExternalNode: (request: Readonly<CreateExternalNodeRequest>) => Promise<ExternalNode>;
|
|
225
218
|
protected pageOfListNodes: (request: Readonly<ListNodesRequest>) => Promise<ListNodesResponse>;
|
|
226
219
|
/**
|
|
227
220
|
* List Nodes in a Cluster. List all the existing nodes for a specific Kubernetes cluster.
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster,
|
|
2
|
+
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
3
|
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
4
|
//#region src/v1/api.gen.ts
|
|
5
5
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
@@ -154,12 +154,6 @@ var API = class extends API$1 {
|
|
|
154
154
|
method: "POST",
|
|
155
155
|
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/external-nodes/auth`
|
|
156
156
|
}, unmarshalExternalNodeAuth);
|
|
157
|
-
this.createExternalNode = (request) => this.client.fetch({
|
|
158
|
-
body: "{}",
|
|
159
|
-
headers: jsonContentHeaders,
|
|
160
|
-
method: "POST",
|
|
161
|
-
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/pools/${validatePathParam("poolId", request.poolId)}/external-nodes`
|
|
162
|
-
}, unmarshalExternalNode);
|
|
163
157
|
this.pageOfListNodes = (request) => this.client.fetch({
|
|
164
158
|
method: "GET",
|
|
165
159
|
path: `/k8s/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/nodes`,
|
package/dist/v1/index.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
|
-
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CoreV1Taint, CoreV1TaintEffect, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy,
|
|
4
|
+
export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, CoreV1Taint, CoreV1TaintEffect, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, Node, NodeMetadata, NodeMetadataCoreV1Taint, NodeStatus, Pool, PoolStatus, PoolUpgradePolicy, PoolVolumeType, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, Runtime, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdateClusterRequestAutoUpgrade, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpdatePoolRequest, UpdatePoolRequestUpgradePolicy, UpgradeClusterRequest, UpgradePoolRequest, Version, } from './types.gen.js';
|
|
5
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster,
|
|
2
|
+
import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
-
export { API, CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster,
|
|
5
|
+
export { API, CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { Version, Cluster, Node, Pool, AddClusterACLRulesResponse,
|
|
2
|
+
import type { Version, Cluster, Node, Pool, AddClusterACLRulesResponse, ExternalNodeAuth, ListClusterACLRulesResponse, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsResponse, ListClusterTypesResponse, ListClustersResponse, ListNodesResponse, ListPoolsResponse, ListVersionsResponse, NodeMetadata, SetClusterACLRulesResponse, AddClusterACLRulesRequest, CreateClusterRequest, CreatePoolRequest, SetClusterACLRulesRequest, SetClusterTypeRequest, SetPoolLabelsRequest, SetPoolStartupTaintsRequest, SetPoolTaintsRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalVersion: (data: unknown) => Version;
|
|
4
4
|
export declare const unmarshalCluster: (data: unknown) => Cluster;
|
|
5
5
|
export declare const unmarshalNode: (data: unknown) => Node;
|
|
6
6
|
export declare const unmarshalPool: (data: unknown) => Pool;
|
|
7
7
|
export declare const unmarshalAddClusterACLRulesResponse: (data: unknown) => AddClusterACLRulesResponse;
|
|
8
|
-
export declare const unmarshalExternalNode: (data: unknown) => ExternalNode;
|
|
9
8
|
export declare const unmarshalExternalNodeAuth: (data: unknown) => ExternalNodeAuth;
|
|
10
9
|
export declare const unmarshalListClusterACLRulesResponse: (data: unknown) => ListClusterACLRulesResponse;
|
|
11
10
|
export declare const unmarshalListClusterAvailableTypesResponse: (data: unknown) => ListClusterAvailableTypesResponse;
|
|
@@ -135,6 +135,7 @@ const unmarshalPool = (data) => {
|
|
|
135
135
|
clusterId: data.cluster_id,
|
|
136
136
|
containerRuntime: data.container_runtime,
|
|
137
137
|
createdAt: unmarshalDate(data.created_at),
|
|
138
|
+
errorMessage: data.error_message,
|
|
138
139
|
id: data.id,
|
|
139
140
|
kubeletArgs: data.kubelet_args,
|
|
140
141
|
labels: data.labels,
|
|
@@ -174,33 +175,6 @@ const unmarshalAddClusterACLRulesResponse = (data) => {
|
|
|
174
175
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddClusterACLRulesResponse' failed as data isn't a dictionary.`);
|
|
175
176
|
return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
|
|
176
177
|
};
|
|
177
|
-
const unmarshalExternalNodeCoreV1Taint = (data) => {
|
|
178
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeCoreV1Taint' failed as data isn't a dictionary.`);
|
|
179
|
-
return {
|
|
180
|
-
effect: data.effect,
|
|
181
|
-
key: data.key,
|
|
182
|
-
value: data.value
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
const unmarshalExternalNode = (data) => {
|
|
186
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary.`);
|
|
187
|
-
return {
|
|
188
|
-
clusterCa: data.cluster_ca,
|
|
189
|
-
clusterUrl: data.cluster_url,
|
|
190
|
-
cniPluginsVersion: data.cni_plugins_version,
|
|
191
|
-
containerdVersion: data.containerd_version,
|
|
192
|
-
externalIp: data.external_ip,
|
|
193
|
-
iamToken: data.iam_token,
|
|
194
|
-
id: data.id,
|
|
195
|
-
kubeToken: data.kube_token,
|
|
196
|
-
kubeletConfig: data.kubelet_config,
|
|
197
|
-
name: data.name,
|
|
198
|
-
nodeLabels: data.node_labels,
|
|
199
|
-
nodeTaints: unmarshalArrayOfObject(data.node_taints, unmarshalExternalNodeCoreV1Taint),
|
|
200
|
-
poolVersion: data.pool_version,
|
|
201
|
-
runcVersion: data.runc_version
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
178
|
const unmarshalExternalNodeAuth = (data) => {
|
|
205
179
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeAuth' failed as data isn't a dictionary.`);
|
|
206
180
|
return {
|
|
@@ -503,4 +477,4 @@ const marshalUpgradeClusterRequest = (request, defaults) => ({
|
|
|
503
477
|
});
|
|
504
478
|
const marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
|
|
505
479
|
//#endregion
|
|
506
|
-
export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster,
|
|
480
|
+
export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -43,11 +43,11 @@ export interface CoreV1Taint {
|
|
|
43
43
|
}
|
|
44
44
|
export interface CreateClusterRequestPoolConfigUpgradePolicy {
|
|
45
45
|
/**
|
|
46
|
-
* The maximum number of nodes that can be
|
|
46
|
+
* The maximum number of nodes that can be `upgrading` at the same time.
|
|
47
47
|
*/
|
|
48
48
|
maxUnavailable?: number;
|
|
49
49
|
/**
|
|
50
|
-
* The maximum number of nodes to be created during the upgrade.
|
|
50
|
+
* The maximum number of nodes to be created during the upgrade, e.g. the pool will scale up to reach `size`+`max_surge` before downscaling to `size` after node upgrades.
|
|
51
51
|
*/
|
|
52
52
|
maxSurge?: number;
|
|
53
53
|
}
|
|
@@ -142,7 +142,13 @@ export interface ClusterOpenIDConnectConfig {
|
|
|
142
142
|
requiredClaim: string[];
|
|
143
143
|
}
|
|
144
144
|
export interface PoolUpgradePolicy {
|
|
145
|
+
/**
|
|
146
|
+
* The maximum number of nodes that can be `upgrading` at the same time.
|
|
147
|
+
*/
|
|
145
148
|
maxUnavailable: number;
|
|
149
|
+
/**
|
|
150
|
+
* The maximum number of nodes to be created during the upgrade, e.g. the pool will scale up to reach `size`+`max_surge` before downscaling to `size` after node upgrades.
|
|
151
|
+
*/
|
|
146
152
|
maxSurge: number;
|
|
147
153
|
}
|
|
148
154
|
export interface ACLRuleRequest {
|
|
@@ -325,7 +331,7 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
325
331
|
*/
|
|
326
332
|
kubeletArgs: Record<string, string>;
|
|
327
333
|
/**
|
|
328
|
-
*
|
|
334
|
+
* Defines how node provisioning should behave during pool version upgrade.
|
|
329
335
|
*/
|
|
330
336
|
upgradePolicy?: CreateClusterRequestPoolConfigUpgradePolicy;
|
|
331
337
|
/**
|
|
@@ -369,14 +375,15 @@ export interface CreateClusterRequestPoolConfig {
|
|
|
369
375
|
privateNetworkId?: string;
|
|
370
376
|
}
|
|
371
377
|
export interface CreatePoolRequestUpgradePolicy {
|
|
378
|
+
/**
|
|
379
|
+
* The maximum number of nodes that can be `upgrading` at the same time.
|
|
380
|
+
*/
|
|
372
381
|
maxUnavailable?: number;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of nodes to be created during the upgrade, e.g. the pool will scale up to reach `size`+`max_surge` before downscaling to `size` after node upgrades.
|
|
384
|
+
*/
|
|
373
385
|
maxSurge?: number;
|
|
374
386
|
}
|
|
375
|
-
export interface ExternalNodeCoreV1Taint {
|
|
376
|
-
key: string;
|
|
377
|
-
value: string;
|
|
378
|
-
effect: string;
|
|
379
|
-
}
|
|
380
387
|
export interface ClusterType {
|
|
381
388
|
/**
|
|
382
389
|
* Cluster type name.
|
|
@@ -711,7 +718,7 @@ export interface Pool {
|
|
|
711
718
|
*/
|
|
712
719
|
kubeletArgs: Record<string, string>;
|
|
713
720
|
/**
|
|
714
|
-
*
|
|
721
|
+
* Defines how node provisioning should behave during pool version upgrade.
|
|
715
722
|
*/
|
|
716
723
|
upgradePolicy?: PoolUpgradePolicy;
|
|
717
724
|
/**
|
|
@@ -753,6 +760,10 @@ export interface Pool {
|
|
|
753
760
|
* Private network where the nodes are attached. Should be member of the same VPC as the API Server.
|
|
754
761
|
*/
|
|
755
762
|
privateNetworkId?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Details of the error, if any occurred when managing the pool.
|
|
765
|
+
*/
|
|
766
|
+
errorMessage?: string;
|
|
756
767
|
/**
|
|
757
768
|
* Cluster region of the pool.
|
|
758
769
|
*/
|
|
@@ -854,7 +865,13 @@ export interface UpdateClusterRequestOpenIDConnectConfig {
|
|
|
854
865
|
requiredClaim?: string[];
|
|
855
866
|
}
|
|
856
867
|
export interface UpdatePoolRequestUpgradePolicy {
|
|
868
|
+
/**
|
|
869
|
+
* New maximum number of nodes that can be `upgrading` at the same time.
|
|
870
|
+
*/
|
|
857
871
|
maxUnavailable?: number;
|
|
872
|
+
/**
|
|
873
|
+
* New maximum number of nodes to be created during the upgrade.
|
|
874
|
+
*/
|
|
858
875
|
maxSurge?: number;
|
|
859
876
|
}
|
|
860
877
|
export type AddClusterACLRulesRequest = {
|
|
@@ -973,13 +990,6 @@ export type CreateClusterRequest = {
|
|
|
973
990
|
*/
|
|
974
991
|
serviceDnsIp?: string;
|
|
975
992
|
};
|
|
976
|
-
export type CreateExternalNodeRequest = {
|
|
977
|
-
/**
|
|
978
|
-
* Region to target. If none is passed will use default region from the config.
|
|
979
|
-
*/
|
|
980
|
-
region?: ScwRegion;
|
|
981
|
-
poolId: string;
|
|
982
|
-
};
|
|
983
993
|
export type CreatePoolRequest = {
|
|
984
994
|
/**
|
|
985
995
|
* Region to target. If none is passed will use default region from the config.
|
|
@@ -1034,7 +1044,7 @@ export type CreatePoolRequest = {
|
|
|
1034
1044
|
*/
|
|
1035
1045
|
kubeletArgs?: Record<string, string>;
|
|
1036
1046
|
/**
|
|
1037
|
-
*
|
|
1047
|
+
* Defines how node provisioning should behave during pool version upgrade.
|
|
1038
1048
|
*/
|
|
1039
1049
|
upgradePolicy?: CreatePoolRequestUpgradePolicy;
|
|
1040
1050
|
/**
|
|
@@ -1129,22 +1139,6 @@ export type DeletePoolRequest = {
|
|
|
1129
1139
|
*/
|
|
1130
1140
|
poolId: string;
|
|
1131
1141
|
};
|
|
1132
|
-
export interface ExternalNode {
|
|
1133
|
-
id: string;
|
|
1134
|
-
name: string;
|
|
1135
|
-
clusterUrl: string;
|
|
1136
|
-
poolVersion: string;
|
|
1137
|
-
clusterCa: string;
|
|
1138
|
-
kubeToken: string;
|
|
1139
|
-
kubeletConfig: string;
|
|
1140
|
-
externalIp: string;
|
|
1141
|
-
containerdVersion: string;
|
|
1142
|
-
runcVersion: string;
|
|
1143
|
-
cniPluginsVersion: string;
|
|
1144
|
-
nodeLabels: Record<string, string>;
|
|
1145
|
-
nodeTaints: ExternalNodeCoreV1Taint[];
|
|
1146
|
-
iamToken: string;
|
|
1147
|
-
}
|
|
1148
1142
|
export interface ExternalNodeAuth {
|
|
1149
1143
|
nodeSecretKey: string;
|
|
1150
1144
|
metadataUrl: string;
|