@cdktn/provider-schema 0.24.0-pre.9 → 0.24.0-pre.90
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/.spec.swcrc +22 -0
- package/LICENSE +355 -0
- package/build/__tests__/cache.test.d.ts +2 -0
- package/build/__tests__/cache.test.d.ts.map +1 -0
- package/build/__tests__/cache.test.js +77 -0
- package/build/__tests__/emission-check.test.d.ts +2 -0
- package/build/__tests__/emission-check.test.d.ts.map +1 -0
- package/build/__tests__/emission-check.test.js +96 -0
- package/build/__tests__/provider-schema.test.js +25 -5
- package/build/__tests__/provider-schema.unit.test.js +13 -1
- package/build/__tests__/read-emission-gap-warning.unit.test.d.ts +2 -0
- package/build/__tests__/read-emission-gap-warning.unit.test.d.ts.map +1 -0
- package/build/__tests__/read-emission-gap-warning.unit.test.js +80 -0
- package/build/__tests__/warn-schema-emission-gaps.unit.test.d.ts +2 -0
- package/build/__tests__/warn-schema-emission-gaps.unit.test.d.ts.map +1 -0
- package/build/__tests__/warn-schema-emission-gaps.unit.test.js +55 -0
- package/build/cache.d.ts +1 -1
- package/build/cache.d.ts.map +1 -1
- package/build/cache.js +11 -5
- package/build/emission-check.d.ts +28 -0
- package/build/emission-check.d.ts.map +1 -0
- package/build/emission-check.js +132 -0
- package/build/provider-schema.d.ts.map +1 -1
- package/build/provider-schema.js +85 -2
- package/build/read.d.ts +2 -2
- package/build/read.d.ts.map +1 -1
- package/build/read.js +32 -5
- package/build/util.d.ts +2 -3
- package/build/util.d.ts.map +1 -1
- package/jest.config.js +15 -11
- package/package.json +23 -24
- package/src/__tests__/__snapshots__/provider-schema.test.ts.snap +38 -28
|
@@ -42,8 +42,7 @@ exports[`readSchema generates a local module 1`] = `
|
|
|
42
42
|
"type": "string"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"default": {
|
|
46
|
-
},
|
|
45
|
+
"default": {},
|
|
47
46
|
"description": "Tags to set on the bucket.",
|
|
48
47
|
"name": "tags",
|
|
49
48
|
"required": false,
|
|
@@ -139,8 +138,7 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
139
138
|
"type": "string"
|
|
140
139
|
},
|
|
141
140
|
{
|
|
142
|
-
"default": [
|
|
143
|
-
],
|
|
141
|
+
"default": [],
|
|
144
142
|
"description": "A list of the desired control plane logging to enable. For more information, see Amazon EKS Control Plane Logging documentation (https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html)",
|
|
145
143
|
"name": "cluster_enabled_log_types",
|
|
146
144
|
"required": false,
|
|
@@ -216,8 +214,7 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
216
214
|
"type": "string"
|
|
217
215
|
},
|
|
218
216
|
{
|
|
219
|
-
"default": [
|
|
220
|
-
],
|
|
217
|
+
"default": [],
|
|
221
218
|
"description": "Any additional arguments to pass to the authenticator such as the role to assume. e.g. [\\"-r\\", \\"MyEksRole\\"].",
|
|
222
219
|
"name": "kubeconfig_aws_authenticator_additional_args",
|
|
223
220
|
"required": false,
|
|
@@ -231,16 +228,14 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
231
228
|
"type": "string"
|
|
232
229
|
},
|
|
233
230
|
{
|
|
234
|
-
"default": [
|
|
235
|
-
],
|
|
231
|
+
"default": [],
|
|
236
232
|
"description": "Default arguments passed to the authenticator command. Defaults to [token -i $cluster_name].",
|
|
237
233
|
"name": "kubeconfig_aws_authenticator_command_args",
|
|
238
234
|
"required": false,
|
|
239
235
|
"type": "list(string)"
|
|
240
236
|
},
|
|
241
237
|
{
|
|
242
|
-
"default": {
|
|
243
|
-
},
|
|
238
|
+
"default": {},
|
|
244
239
|
"description": "Environment variables that should be used when executing the authenticator. e.g. { AWS_PROFILE = \\"eks\\"}.",
|
|
245
240
|
"name": "kubeconfig_aws_authenticator_env_variables",
|
|
246
241
|
"required": false,
|
|
@@ -292,24 +287,21 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
292
287
|
"type": "bool"
|
|
293
288
|
},
|
|
294
289
|
{
|
|
295
|
-
"default": [
|
|
296
|
-
],
|
|
290
|
+
"default": [],
|
|
297
291
|
"description": "Additional AWS account numbers to add to the aws-auth configmap. See examples/basic/variables.tf for example format.",
|
|
298
292
|
"name": "map_accounts",
|
|
299
293
|
"required": false,
|
|
300
294
|
"type": "list(string)"
|
|
301
295
|
},
|
|
302
296
|
{
|
|
303
|
-
"default": [
|
|
304
|
-
],
|
|
297
|
+
"default": [],
|
|
305
298
|
"description": "Additional IAM roles to add to the aws-auth configmap. See examples/basic/variables.tf for example format.",
|
|
306
299
|
"name": "map_roles",
|
|
307
300
|
"required": false,
|
|
308
301
|
"type": "any"
|
|
309
302
|
},
|
|
310
303
|
{
|
|
311
|
-
"default": [
|
|
312
|
-
],
|
|
304
|
+
"default": [],
|
|
313
305
|
"description": "Additional IAM users to add to the aws-auth configmap. See examples/basic/variables.tf for example format.",
|
|
314
306
|
"name": "map_users",
|
|
315
307
|
"required": false,
|
|
@@ -329,8 +321,7 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
329
321
|
"type": "list(string)"
|
|
330
322
|
},
|
|
331
323
|
{
|
|
332
|
-
"default": {
|
|
333
|
-
},
|
|
324
|
+
"default": {},
|
|
334
325
|
"description": "A map of tags to add to all resources.",
|
|
335
326
|
"name": "tags",
|
|
336
327
|
"required": false,
|
|
@@ -343,8 +334,7 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
343
334
|
"type": "string"
|
|
344
335
|
},
|
|
345
336
|
{
|
|
346
|
-
"default": [
|
|
347
|
-
],
|
|
337
|
+
"default": [],
|
|
348
338
|
"description": "A list of additional security group ids to attach to worker instances",
|
|
349
339
|
"name": "worker_additional_security_group_ids",
|
|
350
340
|
"required": false,
|
|
@@ -393,16 +383,14 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
393
383
|
"type": "bool"
|
|
394
384
|
},
|
|
395
385
|
{
|
|
396
|
-
"default": [
|
|
397
|
-
],
|
|
386
|
+
"default": [],
|
|
398
387
|
"description": "A list of maps defining worker group configurations to be defined using AWS Launch Configurations. See workers_group_defaults for valid keys.",
|
|
399
388
|
"name": "worker_groups",
|
|
400
389
|
"required": false,
|
|
401
390
|
"type": "any"
|
|
402
391
|
},
|
|
403
392
|
{
|
|
404
|
-
"default": [
|
|
405
|
-
],
|
|
393
|
+
"default": [],
|
|
406
394
|
"description": "A list of maps defining worker group configurations to be defined using AWS Launch Templates. See workers_group_defaults for valid keys.",
|
|
407
395
|
"name": "worker_groups_launch_template",
|
|
408
396
|
"required": false,
|
|
@@ -423,16 +411,14 @@ exports[`readSchema generates a more complex schema 1`] = `
|
|
|
423
411
|
"type": "number"
|
|
424
412
|
},
|
|
425
413
|
{
|
|
426
|
-
"default": [
|
|
427
|
-
],
|
|
414
|
+
"default": [],
|
|
428
415
|
"description": "Additional policies to be added to workers",
|
|
429
416
|
"name": "workers_additional_policies",
|
|
430
417
|
"required": false,
|
|
431
418
|
"type": "list(string)"
|
|
432
419
|
},
|
|
433
420
|
{
|
|
434
|
-
"default": {
|
|
435
|
-
},
|
|
421
|
+
"default": {},
|
|
436
422
|
"description": "Override default values for target groups. See workers_group_defaults_defaults in local.tf for valid keys.",
|
|
437
423
|
"name": "workers_group_defaults",
|
|
438
424
|
"required": false,
|
|
@@ -689,6 +675,8 @@ exports[`readSchema generates a single module schema 1`] = `
|
|
|
689
675
|
|
|
690
676
|
exports[`readSchema generates a single provider schema 1`] = `
|
|
691
677
|
"{
|
|
678
|
+
"cli_name": "STUBBED CLI",
|
|
679
|
+
"cli_version": "STUBBED VERSION",
|
|
692
680
|
"format_version": "STUBBED VERSION",
|
|
693
681
|
"provider_schemas": {
|
|
694
682
|
"registry.terraform.io/hashicorp/null": {
|
|
@@ -788,6 +776,28 @@ exports[`sanitizeProviderSchema sanitizes a provider schema 1`] = `
|
|
|
788
776
|
"provider_schemas": {
|
|
789
777
|
"registry.terraform.io/hashicorp/null": {
|
|
790
778
|
"data_source_schemas": {},
|
|
779
|
+
"ephemeral_resource_schemas": {
|
|
780
|
+
"null_ephemeral": {
|
|
781
|
+
"block": {
|
|
782
|
+
"attributes": {
|
|
783
|
+
"correct": {
|
|
784
|
+
"type": [
|
|
785
|
+
"list",
|
|
786
|
+
"string",
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
"incorrect": {
|
|
790
|
+
"type": [
|
|
791
|
+
"list",
|
|
792
|
+
"string",
|
|
793
|
+
],
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
"block_types": {},
|
|
797
|
+
},
|
|
798
|
+
"version": 0,
|
|
799
|
+
},
|
|
800
|
+
},
|
|
791
801
|
"provider": {
|
|
792
802
|
"block": {
|
|
793
803
|
"attributes": {
|