@scaleway/sdk-k8s 2.21.0 → 2.22.1

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.
@@ -0,0 +1,31 @@
1
+ import type { AutoscalerEstimator, AutoscalerExpander, CNI, ClusterStatus, ClusterTypeAvailability, ClusterTypeResiliency, CoreV1TaintEffect, ListClustersRequestOrderBy, ListNodesRequestOrderBy, ListPoolsRequestOrderBy, MaintenanceWindowDayOfTheWeek, NodeStatus, PoolStatus, PoolVolumeType, Runtime } from './types.gen.js';
2
+ /** Lists all values of the enum {@link AutoscalerEstimator}. */
3
+ export declare const AUTOSCALER_ESTIMATORS: AutoscalerEstimator[];
4
+ /** Lists all values of the enum {@link AutoscalerExpander}. */
5
+ export declare const AUTOSCALER_EXPANDERS: AutoscalerExpander[];
6
+ /** Lists all values of the enum {@link CNI}. */
7
+ export declare const CNIS: CNI[];
8
+ /** Lists all values of the enum {@link ClusterStatus}. */
9
+ export declare const CLUSTER_STATUSES: ClusterStatus[];
10
+ /** Lists all values of the enum {@link ClusterTypeAvailability}. */
11
+ export declare const CLUSTER_TYPE_AVAILABILITIES: ClusterTypeAvailability[];
12
+ /** Lists all values of the enum {@link ClusterTypeResiliency}. */
13
+ export declare const CLUSTER_TYPE_RESILIENCIES: ClusterTypeResiliency[];
14
+ /** Lists all values of the enum {@link CoreV1TaintEffect}. */
15
+ export declare const CORE_V1_TAINT_EFFECTS: CoreV1TaintEffect[];
16
+ /** Lists all values of the enum {@link ListClustersRequestOrderBy}. */
17
+ export declare const LIST_CLUSTERS_REQUEST_ORDER_BIES: ListClustersRequestOrderBy[];
18
+ /** Lists all values of the enum {@link ListNodesRequestOrderBy}. */
19
+ export declare const LIST_NODES_REQUEST_ORDER_BIES: ListNodesRequestOrderBy[];
20
+ /** Lists all values of the enum {@link ListPoolsRequestOrderBy}. */
21
+ export declare const LIST_POOLS_REQUEST_ORDER_BIES: ListPoolsRequestOrderBy[];
22
+ /** Lists all values of the enum {@link MaintenanceWindowDayOfTheWeek}. */
23
+ export declare const MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS: MaintenanceWindowDayOfTheWeek[];
24
+ /** Lists all values of the enum {@link NodeStatus}. */
25
+ export declare const NODE_STATUSES: NodeStatus[];
26
+ /** Lists all values of the enum {@link PoolStatus}. */
27
+ export declare const POOL_STATUSES: PoolStatus[];
28
+ /** Lists all values of the enum {@link PoolVolumeType}. */
29
+ export declare const POOL_VOLUME_TYPES: PoolVolumeType[];
30
+ /** Lists all values of the enum {@link Runtime}. */
31
+ export declare const RUNTIMES: Runtime[];
@@ -0,0 +1,138 @@
1
+ //#region src/v1/constants.gen.ts
2
+ /** Lists all values of the enum {@link AutoscalerEstimator}. */
3
+ const AUTOSCALER_ESTIMATORS = ["unknown_estimator", "binpacking"];
4
+ /** Lists all values of the enum {@link AutoscalerExpander}. */
5
+ const AUTOSCALER_EXPANDERS = [
6
+ "unknown_expander",
7
+ "random",
8
+ "most_pods",
9
+ "least_waste",
10
+ "priority",
11
+ "price"
12
+ ];
13
+ /** Lists all values of the enum {@link CNI}. */
14
+ const CNIS = [
15
+ "unknown_cni",
16
+ "cilium",
17
+ "calico",
18
+ "kilo",
19
+ "none",
20
+ "cilium_native"
21
+ ];
22
+ /** Lists all values of the enum {@link ClusterStatus}. */
23
+ const CLUSTER_STATUSES = [
24
+ "unknown",
25
+ "creating",
26
+ "ready",
27
+ "deleting",
28
+ "deleted",
29
+ "updating",
30
+ "locked",
31
+ "pool_required"
32
+ ];
33
+ /** Lists all values of the enum {@link ClusterTypeAvailability}. */
34
+ const CLUSTER_TYPE_AVAILABILITIES = [
35
+ "available",
36
+ "scarce",
37
+ "shortage"
38
+ ];
39
+ /** Lists all values of the enum {@link ClusterTypeResiliency}. */
40
+ const CLUSTER_TYPE_RESILIENCIES = [
41
+ "unknown_resiliency",
42
+ "standard",
43
+ "high_availability"
44
+ ];
45
+ /** Lists all values of the enum {@link CoreV1TaintEffect}. */
46
+ const CORE_V1_TAINT_EFFECTS = [
47
+ "NoSchedule",
48
+ "PreferNoSchedule",
49
+ "NoExecute"
50
+ ];
51
+ /** Lists all values of the enum {@link ListClustersRequestOrderBy}. */
52
+ const LIST_CLUSTERS_REQUEST_ORDER_BIES = [
53
+ "created_at_asc",
54
+ "created_at_desc",
55
+ "updated_at_asc",
56
+ "updated_at_desc",
57
+ "name_asc",
58
+ "name_desc",
59
+ "status_asc",
60
+ "status_desc",
61
+ "version_asc",
62
+ "version_desc"
63
+ ];
64
+ /** Lists all values of the enum {@link ListNodesRequestOrderBy}. */
65
+ const LIST_NODES_REQUEST_ORDER_BIES = [
66
+ "created_at_asc",
67
+ "created_at_desc",
68
+ "updated_at_asc",
69
+ "updated_at_desc",
70
+ "name_asc",
71
+ "name_desc",
72
+ "status_asc",
73
+ "status_desc",
74
+ "version_asc",
75
+ "version_desc"
76
+ ];
77
+ /** Lists all values of the enum {@link ListPoolsRequestOrderBy}. */
78
+ const LIST_POOLS_REQUEST_ORDER_BIES = [
79
+ "created_at_asc",
80
+ "created_at_desc",
81
+ "updated_at_asc",
82
+ "updated_at_desc",
83
+ "name_asc",
84
+ "name_desc",
85
+ "status_asc",
86
+ "status_desc",
87
+ "version_asc",
88
+ "version_desc"
89
+ ];
90
+ /** Lists all values of the enum {@link MaintenanceWindowDayOfTheWeek}. */
91
+ const MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS = [
92
+ "any",
93
+ "monday",
94
+ "tuesday",
95
+ "wednesday",
96
+ "thursday",
97
+ "friday",
98
+ "saturday",
99
+ "sunday"
100
+ ];
101
+ /** Lists all values of the enum {@link NodeStatus}. */
102
+ const NODE_STATUSES = [
103
+ "unknown",
104
+ "creating",
105
+ "not_ready",
106
+ "ready",
107
+ "deleting",
108
+ "deleted",
109
+ "locked",
110
+ "rebooting",
111
+ "creation_error",
112
+ "upgrading",
113
+ "starting",
114
+ "registering"
115
+ ];
116
+ /** Lists all values of the enum {@link PoolStatus}. */
117
+ const POOL_STATUSES = [
118
+ "unknown",
119
+ "ready",
120
+ "deleting",
121
+ "deleted",
122
+ "scaling",
123
+ "warning",
124
+ "locked",
125
+ "upgrading"
126
+ ];
127
+ /** Lists all values of the enum {@link PoolVolumeType}. */
128
+ const POOL_VOLUME_TYPES = [
129
+ "default_volume_type",
130
+ "l_ssd",
131
+ "b_ssd",
132
+ "sbs_5k",
133
+ "sbs_15k"
134
+ ];
135
+ /** Lists all values of the enum {@link Runtime}. */
136
+ const RUNTIMES = ["unknown_runtime", "containerd"];
137
+ //#endregion
138
+ export { AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, POOL_STATUSES, POOL_VOLUME_TYPES, RUNTIMES };
@@ -1,5 +1,6 @@
1
1
  export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
+ export * from './constants.gen.js';
3
4
  export * from './marshalling.gen.js';
4
5
  export type { ACLRule, ACLRuleRequest, AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, AutoscalerEstimator, AutoscalerExpander, CNI, Cluster, ClusterAutoUpgrade, ClusterAutoscalerConfig, ClusterOpenIDConnectConfig, ClusterStatus, ClusterType, ClusterTypeAvailability, ClusterTypeResiliency, ComponentInfo, CoreV1Taint, CoreV1TaintEffect, CreateClusterRequest, CreateClusterRequestAutoUpgrade, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreateClusterRequestPoolConfigUpgradePolicy, CreatePoolRequest, CreatePoolRequestUpgradePolicy, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetUserDataRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodesRequest, ListNodesRequestOrderBy, ListNodesResponse, ListPoolsRequest, ListPoolsRequestOrderBy, ListPoolsResponse, ListUserDataRequest, ListUserDataResponse, 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, UserDataSummary, Version, } from './types.gen.js';
5
6
  export * as ValidationRules from './validation-rules.gen.js';
@@ -2,4 +2,5 @@ import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, POOL_TRANSIENT_STA
2
2
  import { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, 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, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
5
+ import { AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, POOL_STATUSES, POOL_VOLUME_TYPES, RUNTIMES } from "./constants.gen.js";
6
+ export { API, AUTOSCALER_ESTIMATORS, AUTOSCALER_EXPANDERS, CLUSTER_STATUSES, CLUSTER_TRANSIENT_STATUSES, CLUSTER_TYPE_AVAILABILITIES, CLUSTER_TYPE_RESILIENCIES, CNIS, CORE_V1_TAINT_EFFECTS, LIST_CLUSTERS_REQUEST_ORDER_BIES, LIST_NODES_REQUEST_ORDER_BIES, LIST_POOLS_REQUEST_ORDER_BIES, MAINTENANCE_WINDOW_DAY_OF_THE_WEEKS, NODE_STATUSES, NODE_TRANSIENT_STATUSES, POOL_STATUSES, POOL_TRANSIENT_STATUSES, POOL_VOLUME_TYPES, RUNTIMES, 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, unmarshalListUserDataResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
@@ -371,6 +371,7 @@ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
371
371
  tags: request.tags,
372
372
  taints: request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)),
373
373
  upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy, defaults) : void 0,
374
+ user_data: request.userData,
374
375
  zone: request.zone
375
376
  });
376
377
  const marshalCreateClusterRequest = (request, defaults) => ({
@@ -380,6 +380,10 @@ export interface CreateClusterRequestPoolConfig {
380
380
  * 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.
381
381
  */
382
382
  maxTerminationGracePeriod?: string;
383
+ /**
384
+ * User data applied and reconciled with the pool.
385
+ */
386
+ userData: Record<string, string>;
383
387
  }
384
388
  export interface CreatePoolRequestUpgradePolicy {
385
389
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-k8s",
3
- "version": "2.21.0",
3
+ "version": "2.22.1",
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.6.0"
36
+ "@scaleway/sdk-std": "2.7.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^2.6.0",
40
- "@repo/configs": "^0.1.1"
39
+ "@repo/configs": "^0.1.1",
40
+ "@scaleway/sdk-client": "^2.7.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.6.0"
43
+ "@scaleway/sdk-client": "^2.7.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=20.20.2"