@cdktf-providers/siderolabs-talos 0.9.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/LICENSE +355 -0
- package/README.md +19 -0
- package/dist/cluster-kubeconfig/index.d.ts +187 -0
- package/dist/cluster-kubeconfig/index.js +489 -0
- package/dist/data-talos-client-configuration/index.d.ts +121 -0
- package/dist/data-talos-client-configuration/index.js +292 -0
- package/dist/data-talos-cluster-health/index.d.ts +165 -0
- package/dist/data-talos-cluster-health/index.js +414 -0
- package/dist/data-talos-cluster-kubeconfig/index.d.ts +176 -0
- package/dist/data-talos-cluster-kubeconfig/index.js +461 -0
- package/dist/data-talos-image-factory-extensions-versions/index.d.ts +118 -0
- package/dist/data-talos-image-factory-extensions-versions/index.js +289 -0
- package/dist/data-talos-image-factory-overlays-versions/index.d.ts +117 -0
- package/dist/data-talos-image-factory-overlays-versions/index.js +285 -0
- package/dist/data-talos-image-factory-urls/index.d.ts +163 -0
- package/dist/data-talos-image-factory-urls/index.js +272 -0
- package/dist/data-talos-image-factory-versions/index.d.ts +71 -0
- package/dist/data-talos-image-factory-versions/index.js +182 -0
- package/dist/data-talos-machine-configuration/index.d.ts +521 -0
- package/dist/data-talos-machine-configuration/index.js +1424 -0
- package/dist/data-talos-machine-disks/index.d.ts +208 -0
- package/dist/data-talos-machine-disks/index.js +537 -0
- package/dist/image-factory-schematic/index.d.ts +50 -0
- package/dist/image-factory-schematic/index.js +95 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +16 -0
- package/dist/lazy-index.d.ts +0 -0
- package/dist/lazy-index.js +16 -0
- package/dist/machine-bootstrap/index.d.ts +144 -0
- package/dist/machine-bootstrap/index.js +371 -0
- package/dist/machine-configuration-apply/index.d.ts +262 -0
- package/dist/machine-configuration-apply/index.js +659 -0
- package/dist/machine-secrets/index.d.ts +238 -0
- package/dist/machine-secrets/index.js +684 -0
- package/dist/provider/index.d.ts +54 -0
- package/dist/provider/index.js +108 -0
- package/package.json +51 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
// https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_health
|
|
2
|
+
// generated from terraform resource schema
|
|
3
|
+
import * as cdktf from 'cdktf';
|
|
4
|
+
export function dataTalosClusterHealthClientConfigurationToTerraform(struct) {
|
|
5
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
6
|
+
return struct;
|
|
7
|
+
}
|
|
8
|
+
if (cdktf.isComplexElement(struct)) {
|
|
9
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
ca_certificate: cdktf.stringToTerraform(struct.caCertificate),
|
|
13
|
+
client_certificate: cdktf.stringToTerraform(struct.clientCertificate),
|
|
14
|
+
client_key: cdktf.stringToTerraform(struct.clientKey),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export function dataTalosClusterHealthClientConfigurationToHclTerraform(struct) {
|
|
18
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
19
|
+
return struct;
|
|
20
|
+
}
|
|
21
|
+
if (cdktf.isComplexElement(struct)) {
|
|
22
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
23
|
+
}
|
|
24
|
+
const attrs = {
|
|
25
|
+
ca_certificate: {
|
|
26
|
+
value: cdktf.stringToHclTerraform(struct.caCertificate),
|
|
27
|
+
isBlock: false,
|
|
28
|
+
type: "simple",
|
|
29
|
+
storageClassType: "string",
|
|
30
|
+
},
|
|
31
|
+
client_certificate: {
|
|
32
|
+
value: cdktf.stringToHclTerraform(struct.clientCertificate),
|
|
33
|
+
isBlock: false,
|
|
34
|
+
type: "simple",
|
|
35
|
+
storageClassType: "string",
|
|
36
|
+
},
|
|
37
|
+
client_key: {
|
|
38
|
+
value: cdktf.stringToHclTerraform(struct.clientKey),
|
|
39
|
+
isBlock: false,
|
|
40
|
+
type: "simple",
|
|
41
|
+
storageClassType: "string",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
// remove undefined attributes
|
|
45
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
46
|
+
}
|
|
47
|
+
export class DataTalosClusterHealthClientConfigurationOutputReference extends cdktf.ComplexObject {
|
|
48
|
+
isEmptyObject = false;
|
|
49
|
+
resolvableValue;
|
|
50
|
+
/**
|
|
51
|
+
* @param terraformResource The parent resource
|
|
52
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
53
|
+
*/
|
|
54
|
+
constructor(terraformResource, terraformAttribute) {
|
|
55
|
+
super(terraformResource, terraformAttribute, false);
|
|
56
|
+
}
|
|
57
|
+
get internalValue() {
|
|
58
|
+
if (this.resolvableValue) {
|
|
59
|
+
return this.resolvableValue;
|
|
60
|
+
}
|
|
61
|
+
let hasAnyValues = this.isEmptyObject;
|
|
62
|
+
const internalValueResult = {};
|
|
63
|
+
if (this._caCertificate !== undefined) {
|
|
64
|
+
hasAnyValues = true;
|
|
65
|
+
internalValueResult.caCertificate = this._caCertificate;
|
|
66
|
+
}
|
|
67
|
+
if (this._clientCertificate !== undefined) {
|
|
68
|
+
hasAnyValues = true;
|
|
69
|
+
internalValueResult.clientCertificate = this._clientCertificate;
|
|
70
|
+
}
|
|
71
|
+
if (this._clientKey !== undefined) {
|
|
72
|
+
hasAnyValues = true;
|
|
73
|
+
internalValueResult.clientKey = this._clientKey;
|
|
74
|
+
}
|
|
75
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
76
|
+
}
|
|
77
|
+
set internalValue(value) {
|
|
78
|
+
if (value === undefined) {
|
|
79
|
+
this.isEmptyObject = false;
|
|
80
|
+
this.resolvableValue = undefined;
|
|
81
|
+
this._caCertificate = undefined;
|
|
82
|
+
this._clientCertificate = undefined;
|
|
83
|
+
this._clientKey = undefined;
|
|
84
|
+
}
|
|
85
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
86
|
+
this.isEmptyObject = false;
|
|
87
|
+
this.resolvableValue = value;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
91
|
+
this.resolvableValue = undefined;
|
|
92
|
+
this._caCertificate = value.caCertificate;
|
|
93
|
+
this._clientCertificate = value.clientCertificate;
|
|
94
|
+
this._clientKey = value.clientKey;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// ca_certificate - computed: false, optional: false, required: true
|
|
98
|
+
_caCertificate;
|
|
99
|
+
get caCertificate() {
|
|
100
|
+
return this.getStringAttribute('ca_certificate');
|
|
101
|
+
}
|
|
102
|
+
set caCertificate(value) {
|
|
103
|
+
this._caCertificate = value;
|
|
104
|
+
}
|
|
105
|
+
// Temporarily expose input value. Use with caution.
|
|
106
|
+
get caCertificateInput() {
|
|
107
|
+
return this._caCertificate;
|
|
108
|
+
}
|
|
109
|
+
// client_certificate - computed: false, optional: false, required: true
|
|
110
|
+
_clientCertificate;
|
|
111
|
+
get clientCertificate() {
|
|
112
|
+
return this.getStringAttribute('client_certificate');
|
|
113
|
+
}
|
|
114
|
+
set clientCertificate(value) {
|
|
115
|
+
this._clientCertificate = value;
|
|
116
|
+
}
|
|
117
|
+
// Temporarily expose input value. Use with caution.
|
|
118
|
+
get clientCertificateInput() {
|
|
119
|
+
return this._clientCertificate;
|
|
120
|
+
}
|
|
121
|
+
// client_key - computed: false, optional: false, required: true
|
|
122
|
+
_clientKey;
|
|
123
|
+
get clientKey() {
|
|
124
|
+
return this.getStringAttribute('client_key');
|
|
125
|
+
}
|
|
126
|
+
set clientKey(value) {
|
|
127
|
+
this._clientKey = value;
|
|
128
|
+
}
|
|
129
|
+
// Temporarily expose input value. Use with caution.
|
|
130
|
+
get clientKeyInput() {
|
|
131
|
+
return this._clientKey;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export function dataTalosClusterHealthTimeoutsToTerraform(struct) {
|
|
135
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
136
|
+
return struct;
|
|
137
|
+
}
|
|
138
|
+
if (cdktf.isComplexElement(struct)) {
|
|
139
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
read: cdktf.stringToTerraform(struct.read),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
export function dataTalosClusterHealthTimeoutsToHclTerraform(struct) {
|
|
146
|
+
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
|
|
147
|
+
return struct;
|
|
148
|
+
}
|
|
149
|
+
if (cdktf.isComplexElement(struct)) {
|
|
150
|
+
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
|
|
151
|
+
}
|
|
152
|
+
const attrs = {
|
|
153
|
+
read: {
|
|
154
|
+
value: cdktf.stringToHclTerraform(struct.read),
|
|
155
|
+
isBlock: false,
|
|
156
|
+
type: "simple",
|
|
157
|
+
storageClassType: "string",
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
// remove undefined attributes
|
|
161
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
162
|
+
}
|
|
163
|
+
export class DataTalosClusterHealthTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
164
|
+
isEmptyObject = false;
|
|
165
|
+
resolvableValue;
|
|
166
|
+
/**
|
|
167
|
+
* @param terraformResource The parent resource
|
|
168
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
169
|
+
*/
|
|
170
|
+
constructor(terraformResource, terraformAttribute) {
|
|
171
|
+
super(terraformResource, terraformAttribute, false);
|
|
172
|
+
}
|
|
173
|
+
get internalValue() {
|
|
174
|
+
if (this.resolvableValue) {
|
|
175
|
+
return this.resolvableValue;
|
|
176
|
+
}
|
|
177
|
+
let hasAnyValues = this.isEmptyObject;
|
|
178
|
+
const internalValueResult = {};
|
|
179
|
+
if (this._read !== undefined) {
|
|
180
|
+
hasAnyValues = true;
|
|
181
|
+
internalValueResult.read = this._read;
|
|
182
|
+
}
|
|
183
|
+
return hasAnyValues ? internalValueResult : undefined;
|
|
184
|
+
}
|
|
185
|
+
set internalValue(value) {
|
|
186
|
+
if (value === undefined) {
|
|
187
|
+
this.isEmptyObject = false;
|
|
188
|
+
this.resolvableValue = undefined;
|
|
189
|
+
this._read = undefined;
|
|
190
|
+
}
|
|
191
|
+
else if (cdktf.Tokenization.isResolvable(value)) {
|
|
192
|
+
this.isEmptyObject = false;
|
|
193
|
+
this.resolvableValue = value;
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
this.isEmptyObject = Object.keys(value).length === 0;
|
|
197
|
+
this.resolvableValue = undefined;
|
|
198
|
+
this._read = value.read;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
// read - computed: false, optional: true, required: false
|
|
202
|
+
_read;
|
|
203
|
+
get read() {
|
|
204
|
+
return this.getStringAttribute('read');
|
|
205
|
+
}
|
|
206
|
+
set read(value) {
|
|
207
|
+
this._read = value;
|
|
208
|
+
}
|
|
209
|
+
resetRead() {
|
|
210
|
+
this._read = undefined;
|
|
211
|
+
}
|
|
212
|
+
// Temporarily expose input value. Use with caution.
|
|
213
|
+
get readInput() {
|
|
214
|
+
return this._read;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_health talos_cluster_health}
|
|
219
|
+
*/
|
|
220
|
+
export class DataTalosClusterHealth extends cdktf.TerraformDataSource {
|
|
221
|
+
// =================
|
|
222
|
+
// STATIC PROPERTIES
|
|
223
|
+
// =================
|
|
224
|
+
static tfResourceType = "talos_cluster_health";
|
|
225
|
+
// ==============
|
|
226
|
+
// STATIC Methods
|
|
227
|
+
// ==============
|
|
228
|
+
/**
|
|
229
|
+
* Generates CDKTF code for importing a DataTalosClusterHealth resource upon running "cdktf plan <stack-name>"
|
|
230
|
+
* @param scope The scope in which to define this construct
|
|
231
|
+
* @param importToId The construct id used in the generated config for the DataTalosClusterHealth to import
|
|
232
|
+
* @param importFromId The id of the existing DataTalosClusterHealth that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_health#import import section} in the documentation of this resource for the id to use
|
|
233
|
+
* @param provider? Optional instance of the provider where the DataTalosClusterHealth to import is found
|
|
234
|
+
*/
|
|
235
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
236
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "talos_cluster_health", importId: importFromId, provider });
|
|
237
|
+
}
|
|
238
|
+
// ===========
|
|
239
|
+
// INITIALIZER
|
|
240
|
+
// ===========
|
|
241
|
+
/**
|
|
242
|
+
* Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_health talos_cluster_health} Data Source
|
|
243
|
+
*
|
|
244
|
+
* @param scope The scope in which to define this construct
|
|
245
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
246
|
+
* @param options DataTalosClusterHealthConfig
|
|
247
|
+
*/
|
|
248
|
+
constructor(scope, id, config) {
|
|
249
|
+
super(scope, id, {
|
|
250
|
+
terraformResourceType: 'talos_cluster_health',
|
|
251
|
+
terraformGeneratorMetadata: {
|
|
252
|
+
providerName: 'talos',
|
|
253
|
+
providerVersion: '0.9.0',
|
|
254
|
+
providerVersionConstraint: '0.9.0'
|
|
255
|
+
},
|
|
256
|
+
provider: config.provider,
|
|
257
|
+
dependsOn: config.dependsOn,
|
|
258
|
+
count: config.count,
|
|
259
|
+
lifecycle: config.lifecycle,
|
|
260
|
+
provisioners: config.provisioners,
|
|
261
|
+
connection: config.connection,
|
|
262
|
+
forEach: config.forEach
|
|
263
|
+
});
|
|
264
|
+
this._clientConfiguration.internalValue = config.clientConfiguration;
|
|
265
|
+
this._controlPlaneNodes = config.controlPlaneNodes;
|
|
266
|
+
this._endpoints = config.endpoints;
|
|
267
|
+
this._skipKubernetesChecks = config.skipKubernetesChecks;
|
|
268
|
+
this._timeouts.internalValue = config.timeouts;
|
|
269
|
+
this._workerNodes = config.workerNodes;
|
|
270
|
+
}
|
|
271
|
+
// ==========
|
|
272
|
+
// ATTRIBUTES
|
|
273
|
+
// ==========
|
|
274
|
+
// client_configuration - computed: false, optional: false, required: true
|
|
275
|
+
_clientConfiguration = new DataTalosClusterHealthClientConfigurationOutputReference(this, "client_configuration");
|
|
276
|
+
get clientConfiguration() {
|
|
277
|
+
return this._clientConfiguration;
|
|
278
|
+
}
|
|
279
|
+
putClientConfiguration(value) {
|
|
280
|
+
this._clientConfiguration.internalValue = value;
|
|
281
|
+
}
|
|
282
|
+
// Temporarily expose input value. Use with caution.
|
|
283
|
+
get clientConfigurationInput() {
|
|
284
|
+
return this._clientConfiguration.internalValue;
|
|
285
|
+
}
|
|
286
|
+
// control_plane_nodes - computed: false, optional: false, required: true
|
|
287
|
+
_controlPlaneNodes;
|
|
288
|
+
get controlPlaneNodes() {
|
|
289
|
+
return this.getListAttribute('control_plane_nodes');
|
|
290
|
+
}
|
|
291
|
+
set controlPlaneNodes(value) {
|
|
292
|
+
this._controlPlaneNodes = value;
|
|
293
|
+
}
|
|
294
|
+
// Temporarily expose input value. Use with caution.
|
|
295
|
+
get controlPlaneNodesInput() {
|
|
296
|
+
return this._controlPlaneNodes;
|
|
297
|
+
}
|
|
298
|
+
// endpoints - computed: false, optional: false, required: true
|
|
299
|
+
_endpoints;
|
|
300
|
+
get endpoints() {
|
|
301
|
+
return this.getListAttribute('endpoints');
|
|
302
|
+
}
|
|
303
|
+
set endpoints(value) {
|
|
304
|
+
this._endpoints = value;
|
|
305
|
+
}
|
|
306
|
+
// Temporarily expose input value. Use with caution.
|
|
307
|
+
get endpointsInput() {
|
|
308
|
+
return this._endpoints;
|
|
309
|
+
}
|
|
310
|
+
// id - computed: true, optional: false, required: false
|
|
311
|
+
get id() {
|
|
312
|
+
return this.getStringAttribute('id');
|
|
313
|
+
}
|
|
314
|
+
// skip_kubernetes_checks - computed: false, optional: true, required: false
|
|
315
|
+
_skipKubernetesChecks;
|
|
316
|
+
get skipKubernetesChecks() {
|
|
317
|
+
return this.getBooleanAttribute('skip_kubernetes_checks');
|
|
318
|
+
}
|
|
319
|
+
set skipKubernetesChecks(value) {
|
|
320
|
+
this._skipKubernetesChecks = value;
|
|
321
|
+
}
|
|
322
|
+
resetSkipKubernetesChecks() {
|
|
323
|
+
this._skipKubernetesChecks = undefined;
|
|
324
|
+
}
|
|
325
|
+
// Temporarily expose input value. Use with caution.
|
|
326
|
+
get skipKubernetesChecksInput() {
|
|
327
|
+
return this._skipKubernetesChecks;
|
|
328
|
+
}
|
|
329
|
+
// timeouts - computed: false, optional: true, required: false
|
|
330
|
+
_timeouts = new DataTalosClusterHealthTimeoutsOutputReference(this, "timeouts");
|
|
331
|
+
get timeouts() {
|
|
332
|
+
return this._timeouts;
|
|
333
|
+
}
|
|
334
|
+
putTimeouts(value) {
|
|
335
|
+
this._timeouts.internalValue = value;
|
|
336
|
+
}
|
|
337
|
+
resetTimeouts() {
|
|
338
|
+
this._timeouts.internalValue = undefined;
|
|
339
|
+
}
|
|
340
|
+
// Temporarily expose input value. Use with caution.
|
|
341
|
+
get timeoutsInput() {
|
|
342
|
+
return this._timeouts.internalValue;
|
|
343
|
+
}
|
|
344
|
+
// worker_nodes - computed: false, optional: true, required: false
|
|
345
|
+
_workerNodes;
|
|
346
|
+
get workerNodes() {
|
|
347
|
+
return this.getListAttribute('worker_nodes');
|
|
348
|
+
}
|
|
349
|
+
set workerNodes(value) {
|
|
350
|
+
this._workerNodes = value;
|
|
351
|
+
}
|
|
352
|
+
resetWorkerNodes() {
|
|
353
|
+
this._workerNodes = undefined;
|
|
354
|
+
}
|
|
355
|
+
// Temporarily expose input value. Use with caution.
|
|
356
|
+
get workerNodesInput() {
|
|
357
|
+
return this._workerNodes;
|
|
358
|
+
}
|
|
359
|
+
// =========
|
|
360
|
+
// SYNTHESIS
|
|
361
|
+
// =========
|
|
362
|
+
synthesizeAttributes() {
|
|
363
|
+
return {
|
|
364
|
+
client_configuration: dataTalosClusterHealthClientConfigurationToTerraform(this._clientConfiguration.internalValue),
|
|
365
|
+
control_plane_nodes: cdktf.listMapper(cdktf.stringToTerraform, false)(this._controlPlaneNodes),
|
|
366
|
+
endpoints: cdktf.listMapper(cdktf.stringToTerraform, false)(this._endpoints),
|
|
367
|
+
skip_kubernetes_checks: cdktf.booleanToTerraform(this._skipKubernetesChecks),
|
|
368
|
+
timeouts: dataTalosClusterHealthTimeoutsToTerraform(this._timeouts.internalValue),
|
|
369
|
+
worker_nodes: cdktf.listMapper(cdktf.stringToTerraform, false)(this._workerNodes),
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
synthesizeHclAttributes() {
|
|
373
|
+
const attrs = {
|
|
374
|
+
client_configuration: {
|
|
375
|
+
value: dataTalosClusterHealthClientConfigurationToHclTerraform(this._clientConfiguration.internalValue),
|
|
376
|
+
isBlock: true,
|
|
377
|
+
type: "struct",
|
|
378
|
+
storageClassType: "DataTalosClusterHealthClientConfiguration",
|
|
379
|
+
},
|
|
380
|
+
control_plane_nodes: {
|
|
381
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._controlPlaneNodes),
|
|
382
|
+
isBlock: false,
|
|
383
|
+
type: "list",
|
|
384
|
+
storageClassType: "stringList",
|
|
385
|
+
},
|
|
386
|
+
endpoints: {
|
|
387
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._endpoints),
|
|
388
|
+
isBlock: false,
|
|
389
|
+
type: "list",
|
|
390
|
+
storageClassType: "stringList",
|
|
391
|
+
},
|
|
392
|
+
skip_kubernetes_checks: {
|
|
393
|
+
value: cdktf.booleanToHclTerraform(this._skipKubernetesChecks),
|
|
394
|
+
isBlock: false,
|
|
395
|
+
type: "simple",
|
|
396
|
+
storageClassType: "boolean",
|
|
397
|
+
},
|
|
398
|
+
timeouts: {
|
|
399
|
+
value: dataTalosClusterHealthTimeoutsToHclTerraform(this._timeouts.internalValue),
|
|
400
|
+
isBlock: true,
|
|
401
|
+
type: "struct",
|
|
402
|
+
storageClassType: "DataTalosClusterHealthTimeouts",
|
|
403
|
+
},
|
|
404
|
+
worker_nodes: {
|
|
405
|
+
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._workerNodes),
|
|
406
|
+
isBlock: false,
|
|
407
|
+
type: "list",
|
|
408
|
+
storageClassType: "stringList",
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
// remove undefined attributes
|
|
412
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
413
|
+
}
|
|
414
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataTalosClusterKubeconfigConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The client configuration data
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#client_configuration DataTalosClusterKubeconfig#client_configuration}
|
|
8
|
+
*/
|
|
9
|
+
readonly clientConfiguration: DataTalosClusterKubeconfigClientConfiguration;
|
|
10
|
+
/**
|
|
11
|
+
* endpoint to use for the talosclient. If not set, the node value will be used
|
|
12
|
+
*
|
|
13
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#endpoint DataTalosClusterKubeconfig#endpoint}
|
|
14
|
+
*/
|
|
15
|
+
readonly endpoint?: string;
|
|
16
|
+
/**
|
|
17
|
+
* controlplane node to retrieve the kubeconfig from
|
|
18
|
+
*
|
|
19
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#node DataTalosClusterKubeconfig#node}
|
|
20
|
+
*/
|
|
21
|
+
readonly nodeAttribute: string;
|
|
22
|
+
/**
|
|
23
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#timeouts DataTalosClusterKubeconfig#timeouts}
|
|
24
|
+
*/
|
|
25
|
+
readonly timeouts?: DataTalosClusterKubeconfigTimeouts;
|
|
26
|
+
/**
|
|
27
|
+
* Wait for the kubernetes api to be available
|
|
28
|
+
*
|
|
29
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#wait DataTalosClusterKubeconfig#wait}
|
|
30
|
+
*/
|
|
31
|
+
readonly wait?: boolean | cdktf.IResolvable;
|
|
32
|
+
}
|
|
33
|
+
export interface DataTalosClusterKubeconfigClientConfiguration {
|
|
34
|
+
/**
|
|
35
|
+
* The client CA certificate
|
|
36
|
+
*
|
|
37
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#ca_certificate DataTalosClusterKubeconfig#ca_certificate}
|
|
38
|
+
*/
|
|
39
|
+
readonly caCertificate: string;
|
|
40
|
+
/**
|
|
41
|
+
* The client certificate
|
|
42
|
+
*
|
|
43
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#client_certificate DataTalosClusterKubeconfig#client_certificate}
|
|
44
|
+
*/
|
|
45
|
+
readonly clientCertificate: string;
|
|
46
|
+
/**
|
|
47
|
+
* The client key
|
|
48
|
+
*
|
|
49
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#client_key DataTalosClusterKubeconfig#client_key}
|
|
50
|
+
*/
|
|
51
|
+
readonly clientKey: string;
|
|
52
|
+
}
|
|
53
|
+
export declare function dataTalosClusterKubeconfigClientConfigurationToTerraform(struct?: DataTalosClusterKubeconfigClientConfiguration | cdktf.IResolvable): any;
|
|
54
|
+
export declare function dataTalosClusterKubeconfigClientConfigurationToHclTerraform(struct?: DataTalosClusterKubeconfigClientConfiguration | cdktf.IResolvable): any;
|
|
55
|
+
export declare class DataTalosClusterKubeconfigClientConfigurationOutputReference extends cdktf.ComplexObject {
|
|
56
|
+
private isEmptyObject;
|
|
57
|
+
private resolvableValue?;
|
|
58
|
+
/**
|
|
59
|
+
* @param terraformResource The parent resource
|
|
60
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
61
|
+
*/
|
|
62
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
63
|
+
get internalValue(): DataTalosClusterKubeconfigClientConfiguration | cdktf.IResolvable | undefined;
|
|
64
|
+
set internalValue(value: DataTalosClusterKubeconfigClientConfiguration | cdktf.IResolvable | undefined);
|
|
65
|
+
private _caCertificate?;
|
|
66
|
+
get caCertificate(): string;
|
|
67
|
+
set caCertificate(value: string);
|
|
68
|
+
get caCertificateInput(): string;
|
|
69
|
+
private _clientCertificate?;
|
|
70
|
+
get clientCertificate(): string;
|
|
71
|
+
set clientCertificate(value: string);
|
|
72
|
+
get clientCertificateInput(): string;
|
|
73
|
+
private _clientKey?;
|
|
74
|
+
get clientKey(): string;
|
|
75
|
+
set clientKey(value: string);
|
|
76
|
+
get clientKeyInput(): string;
|
|
77
|
+
}
|
|
78
|
+
export interface DataTalosClusterKubeconfigKubernetesClientConfiguration {
|
|
79
|
+
}
|
|
80
|
+
export declare function dataTalosClusterKubeconfigKubernetesClientConfigurationToTerraform(struct?: DataTalosClusterKubeconfigKubernetesClientConfiguration): any;
|
|
81
|
+
export declare function dataTalosClusterKubeconfigKubernetesClientConfigurationToHclTerraform(struct?: DataTalosClusterKubeconfigKubernetesClientConfiguration): any;
|
|
82
|
+
export declare class DataTalosClusterKubeconfigKubernetesClientConfigurationOutputReference extends cdktf.ComplexObject {
|
|
83
|
+
private isEmptyObject;
|
|
84
|
+
/**
|
|
85
|
+
* @param terraformResource The parent resource
|
|
86
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
87
|
+
*/
|
|
88
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
89
|
+
get internalValue(): DataTalosClusterKubeconfigKubernetesClientConfiguration | undefined;
|
|
90
|
+
set internalValue(value: DataTalosClusterKubeconfigKubernetesClientConfiguration | undefined);
|
|
91
|
+
get caCertificate(): any;
|
|
92
|
+
get clientCertificate(): any;
|
|
93
|
+
get clientKey(): any;
|
|
94
|
+
get host(): any;
|
|
95
|
+
}
|
|
96
|
+
export interface DataTalosClusterKubeconfigTimeouts {
|
|
97
|
+
/**
|
|
98
|
+
* A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
|
|
99
|
+
*
|
|
100
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#read DataTalosClusterKubeconfig#read}
|
|
101
|
+
*/
|
|
102
|
+
readonly read?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare function dataTalosClusterKubeconfigTimeoutsToTerraform(struct?: DataTalosClusterKubeconfigTimeouts | cdktf.IResolvable): any;
|
|
105
|
+
export declare function dataTalosClusterKubeconfigTimeoutsToHclTerraform(struct?: DataTalosClusterKubeconfigTimeouts | cdktf.IResolvable): any;
|
|
106
|
+
export declare class DataTalosClusterKubeconfigTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
107
|
+
private isEmptyObject;
|
|
108
|
+
private resolvableValue?;
|
|
109
|
+
/**
|
|
110
|
+
* @param terraformResource The parent resource
|
|
111
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
112
|
+
*/
|
|
113
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
114
|
+
get internalValue(): DataTalosClusterKubeconfigTimeouts | cdktf.IResolvable | undefined;
|
|
115
|
+
set internalValue(value: DataTalosClusterKubeconfigTimeouts | cdktf.IResolvable | undefined);
|
|
116
|
+
private _read?;
|
|
117
|
+
get read(): string;
|
|
118
|
+
set read(value: string);
|
|
119
|
+
resetRead(): void;
|
|
120
|
+
get readInput(): string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Represents a {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig talos_cluster_kubeconfig}
|
|
124
|
+
*/
|
|
125
|
+
export declare class DataTalosClusterKubeconfig extends cdktf.TerraformDataSource {
|
|
126
|
+
static readonly tfResourceType = "talos_cluster_kubeconfig";
|
|
127
|
+
/**
|
|
128
|
+
* Generates CDKTF code for importing a DataTalosClusterKubeconfig resource upon running "cdktf plan <stack-name>"
|
|
129
|
+
* @param scope The scope in which to define this construct
|
|
130
|
+
* @param importToId The construct id used in the generated config for the DataTalosClusterKubeconfig to import
|
|
131
|
+
* @param importFromId The id of the existing DataTalosClusterKubeconfig that should be imported. Refer to the {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig#import import section} in the documentation of this resource for the id to use
|
|
132
|
+
* @param provider? Optional instance of the provider where the DataTalosClusterKubeconfig to import is found
|
|
133
|
+
*/
|
|
134
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any;
|
|
135
|
+
/**
|
|
136
|
+
* Create a new {@link https://registry.terraform.io/providers/siderolabs/talos/0.9.0/docs/data-sources/cluster_kubeconfig talos_cluster_kubeconfig} Data Source
|
|
137
|
+
*
|
|
138
|
+
* @param scope The scope in which to define this construct
|
|
139
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
140
|
+
* @param options DataTalosClusterKubeconfigConfig
|
|
141
|
+
*/
|
|
142
|
+
constructor(scope: Construct, id: string, config: DataTalosClusterKubeconfigConfig);
|
|
143
|
+
private _clientConfiguration;
|
|
144
|
+
get clientConfiguration(): DataTalosClusterKubeconfigClientConfigurationOutputReference;
|
|
145
|
+
putClientConfiguration(value: DataTalosClusterKubeconfigClientConfiguration): void;
|
|
146
|
+
get clientConfigurationInput(): any;
|
|
147
|
+
private _endpoint?;
|
|
148
|
+
get endpoint(): string;
|
|
149
|
+
set endpoint(value: string);
|
|
150
|
+
resetEndpoint(): void;
|
|
151
|
+
get endpointInput(): string;
|
|
152
|
+
get id(): any;
|
|
153
|
+
get kubeconfigRaw(): any;
|
|
154
|
+
private _kubernetesClientConfiguration;
|
|
155
|
+
get kubernetesClientConfiguration(): DataTalosClusterKubeconfigKubernetesClientConfigurationOutputReference;
|
|
156
|
+
private _node?;
|
|
157
|
+
get nodeAttribute(): string;
|
|
158
|
+
set nodeAttribute(value: string);
|
|
159
|
+
get nodeAttributeInput(): string;
|
|
160
|
+
private _timeouts;
|
|
161
|
+
get timeouts(): DataTalosClusterKubeconfigTimeoutsOutputReference;
|
|
162
|
+
putTimeouts(value: DataTalosClusterKubeconfigTimeouts): void;
|
|
163
|
+
resetTimeouts(): void;
|
|
164
|
+
get timeoutsInput(): any;
|
|
165
|
+
private _wait?;
|
|
166
|
+
get wait(): boolean | cdktf.IResolvable;
|
|
167
|
+
set wait(value: boolean | cdktf.IResolvable);
|
|
168
|
+
resetWait(): void;
|
|
169
|
+
get waitInput(): any;
|
|
170
|
+
protected synthesizeAttributes(): {
|
|
171
|
+
[name: string]: any;
|
|
172
|
+
};
|
|
173
|
+
protected synthesizeHclAttributes(): {
|
|
174
|
+
[name: string]: any;
|
|
175
|
+
};
|
|
176
|
+
}
|