@scaleway/sdk-k8s 2.5.0 → 2.6.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.
@@ -1071,7 +1071,7 @@ export type DeleteNodeRequest = {
1071
1071
  */
1072
1072
  skipDrain: boolean;
1073
1073
  /**
1074
- * Add a new node after the deletion of this node.
1074
+ * @deprecated Add a new node after the deletion of this node.
1075
1075
  */
1076
1076
  replace: boolean;
1077
1077
  };
@@ -1,182 +1,116 @@
1
- const ACLRuleRequest = {
2
- description: {
3
- maxLength: 2e3
4
- }
5
- };
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
+ ACLRuleRequest: () => ACLRuleRequest,
4
+ CoreV1Taint: () => CoreV1Taint,
5
+ CreateClusterRequest: () => CreateClusterRequest,
6
+ CreateClusterRequestAutoscalerConfig: () => CreateClusterRequestAutoscalerConfig,
7
+ CreateClusterRequestOpenIDConnectConfig: () => CreateClusterRequestOpenIDConnectConfig,
8
+ CreateClusterRequestPoolConfig: () => CreateClusterRequestPoolConfig,
9
+ CreatePoolRequest: () => CreatePoolRequest,
10
+ ListClusterTypesRequest: () => ListClusterTypesRequest,
11
+ ListClustersRequest: () => ListClustersRequest,
12
+ ListNodesRequest: () => ListNodesRequest,
13
+ ListPoolsRequest: () => ListPoolsRequest,
14
+ MaintenanceWindow: () => MaintenanceWindow,
15
+ SetClusterTypeRequest: () => SetClusterTypeRequest,
16
+ UpdateClusterRequest: () => UpdateClusterRequest,
17
+ UpdateClusterRequestAutoscalerConfig: () => UpdateClusterRequestAutoscalerConfig,
18
+ UpdateClusterRequestOpenIDConnectConfig: () => UpdateClusterRequestOpenIDConnectConfig,
19
+ UpgradeClusterRequest: () => UpgradeClusterRequest
20
+ });
21
+ const ACLRuleRequest = { description: { maxLength: 2e3 } };
6
22
  const CoreV1Taint = {
7
- key: {
8
- maxLength: 316,
9
- minLength: 1,
10
- 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])$/
11
- },
12
- value: {
13
- maxLength: 63
14
- }
23
+ key: {
24
+ maxLength: 316,
25
+ minLength: 1,
26
+ 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])$/
27
+ },
28
+ value: { maxLength: 63 }
15
29
  };
16
30
  const CreateClusterRequest = {
17
- description: {
18
- maxLength: 4096
19
- },
20
- name: {
21
- maxLength: 100,
22
- minLength: 1
23
- },
24
- type: {
25
- maxLength: 100
26
- },
27
- version: {
28
- maxLength: 10
29
- }
31
+ description: { maxLength: 4096 },
32
+ name: {
33
+ maxLength: 100,
34
+ minLength: 1
35
+ },
36
+ type: { maxLength: 100 },
37
+ version: { maxLength: 10 }
30
38
  };
31
39
  const CreateClusterRequestAutoscalerConfig = {
32
- scaleDownDelayAfterAdd: {
33
- maxLength: 100
34
- },
35
- scaleDownUtilizationThreshold: {
36
- greaterThan: 0,
37
- lessThan: 1
38
- }
40
+ scaleDownDelayAfterAdd: { maxLength: 100 },
41
+ scaleDownUtilizationThreshold: {
42
+ greaterThan: 0,
43
+ lessThan: 1
44
+ }
39
45
  };
40
46
  const CreateClusterRequestOpenIDConnectConfig = {
41
- clientId: {
42
- maxLength: 255
43
- },
44
- groupsPrefix: {
45
- maxLength: 100
46
- },
47
- issuerUrl: {
48
- maxLength: 255
49
- },
50
- usernameClaim: {
51
- maxLength: 100
52
- },
53
- usernamePrefix: {
54
- maxLength: 100
55
- }
56
- };
57
- const CreateClusterRequestPoolConfig = {
58
- name: {
59
- maxLength: 100,
60
- minLength: 1
61
- }
62
- };
63
- const CreatePoolRequest = {
64
- name: {
65
- maxLength: 100,
66
- minLength: 1
67
- }
68
- };
47
+ clientId: { maxLength: 255 },
48
+ groupsPrefix: { maxLength: 100 },
49
+ issuerUrl: { maxLength: 255 },
50
+ usernameClaim: { maxLength: 100 },
51
+ usernamePrefix: { maxLength: 100 }
52
+ };
53
+ const CreateClusterRequestPoolConfig = { name: {
54
+ maxLength: 100,
55
+ minLength: 1
56
+ } };
57
+ const CreatePoolRequest = { name: {
58
+ maxLength: 100,
59
+ minLength: 1
60
+ } };
69
61
  const ListClusterTypesRequest = {
70
- page: {
71
- greaterThan: 0
72
- },
73
- pageSize: {
74
- greaterThan: 0,
75
- lessThanOrEqual: 100
76
- }
62
+ page: { greaterThan: 0 },
63
+ pageSize: {
64
+ greaterThan: 0,
65
+ lessThanOrEqual: 100
66
+ }
77
67
  };
78
68
  const ListClustersRequest = {
79
- name: {
80
- minLength: 1
81
- },
82
- page: {
83
- greaterThan: 0
84
- },
85
- pageSize: {
86
- greaterThan: 0,
87
- lessThanOrEqual: 100
88
- }
69
+ name: { minLength: 1 },
70
+ page: { greaterThan: 0 },
71
+ pageSize: {
72
+ greaterThan: 0,
73
+ lessThanOrEqual: 100
74
+ }
89
75
  };
90
76
  const ListNodesRequest = {
91
- name: {
92
- minLength: 1
93
- },
94
- page: {
95
- greaterThan: 0
96
- },
97
- pageSize: {
98
- greaterThan: 0,
99
- lessThanOrEqual: 100
100
- }
77
+ name: { minLength: 1 },
78
+ page: { greaterThan: 0 },
79
+ pageSize: {
80
+ greaterThan: 0,
81
+ lessThanOrEqual: 100
82
+ }
101
83
  };
102
84
  const ListPoolsRequest = {
103
- name: {
104
- minLength: 1
105
- },
106
- page: {
107
- greaterThan: 0
108
- },
109
- pageSize: {
110
- greaterThan: 0,
111
- lessThanOrEqual: 100
112
- }
113
- };
114
- const MaintenanceWindow = {
115
- startHour: {
116
- lessThanOrEqual: 23
117
- }
118
- };
119
- const SetClusterTypeRequest = {
120
- type: {
121
- maxLength: 100
122
- }
123
- };
85
+ name: { minLength: 1 },
86
+ page: { greaterThan: 0 },
87
+ pageSize: {
88
+ greaterThan: 0,
89
+ lessThanOrEqual: 100
90
+ }
91
+ };
92
+ const MaintenanceWindow = { startHour: { lessThanOrEqual: 23 } };
93
+ const SetClusterTypeRequest = { type: { maxLength: 100 } };
124
94
  const UpdateClusterRequest = {
125
- description: {
126
- maxLength: 4096
127
- },
128
- name: {
129
- maxLength: 100,
130
- minLength: 1
131
- }
95
+ description: { maxLength: 4096 },
96
+ name: {
97
+ maxLength: 100,
98
+ minLength: 1
99
+ }
132
100
  };
133
101
  const UpdateClusterRequestAutoscalerConfig = {
134
- scaleDownDelayAfterAdd: {
135
- maxLength: 100
136
- },
137
- scaleDownUtilizationThreshold: {
138
- greaterThan: 0,
139
- lessThan: 1
140
- }
102
+ scaleDownDelayAfterAdd: { maxLength: 100 },
103
+ scaleDownUtilizationThreshold: {
104
+ greaterThan: 0,
105
+ lessThan: 1
106
+ }
141
107
  };
142
108
  const UpdateClusterRequestOpenIDConnectConfig = {
143
- clientId: {
144
- maxLength: 255
145
- },
146
- groupsPrefix: {
147
- maxLength: 100
148
- },
149
- issuerUrl: {
150
- maxLength: 255
151
- },
152
- usernameClaim: {
153
- maxLength: 100
154
- },
155
- usernamePrefix: {
156
- maxLength: 100
157
- }
158
- };
159
- const UpgradeClusterRequest = {
160
- version: {
161
- maxLength: 10
162
- }
163
- };
164
- export {
165
- ACLRuleRequest,
166
- CoreV1Taint,
167
- CreateClusterRequest,
168
- CreateClusterRequestAutoscalerConfig,
169
- CreateClusterRequestOpenIDConnectConfig,
170
- CreateClusterRequestPoolConfig,
171
- CreatePoolRequest,
172
- ListClusterTypesRequest,
173
- ListClustersRequest,
174
- ListNodesRequest,
175
- ListPoolsRequest,
176
- MaintenanceWindow,
177
- SetClusterTypeRequest,
178
- UpdateClusterRequest,
179
- UpdateClusterRequestAutoscalerConfig,
180
- UpdateClusterRequestOpenIDConnectConfig,
181
- UpgradeClusterRequest
182
- };
109
+ clientId: { maxLength: 255 },
110
+ groupsPrefix: { maxLength: 100 },
111
+ issuerUrl: { maxLength: 255 },
112
+ usernameClaim: { maxLength: 100 },
113
+ usernamePrefix: { maxLength: 100 }
114
+ };
115
+ const UpgradeClusterRequest = { version: { maxLength: 10 } };
116
+ export { validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-k8s",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Scaleway SDK k8s",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -27,13 +27,13 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.1.1"
30
+ "@scaleway/sdk-std": "2.2.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.1.0"
33
+ "@scaleway/sdk-client": "^2.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.1.0"
36
+ "@scaleway/sdk-client": "^2.2.0"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",