@firestartr/cli 1.54.0-snapshot-1 → 1.54.0-snapshot-2

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.
Files changed (21) hide show
  1. package/build/index.js +339 -484
  2. package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +3 -1
  3. package/build/packages/cdk8s_renderer/src/claims/base/schemas/common-meta.schema.d.ts +0 -6
  4. package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +34 -77
  5. package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +0 -6
  6. package/build/packages/cdk8s_renderer/src/claims/github/group.schema.d.ts +0 -6
  7. package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -24
  8. package/build/packages/cdk8s_renderer/src/claims/github/orgwebhook.schema.d.ts +0 -6
  9. package/build/packages/cdk8s_renderer/src/claims/github/user.schema.d.ts +0 -6
  10. package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/index.d.ts +34 -2
  11. package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/terraform.schema.d.ts +34 -2
  12. package/build/packages/cdk8s_renderer/src/refsSorter/refsExtractor.d.ts +1 -1
  13. package/build/packages/operator/src/metrics/CRStates.d.ts +1 -0
  14. package/build/packages/operator/src/syncCtl.d.ts +1 -0
  15. package/build/packages/operator/src/utils/index.d.ts +0 -7
  16. package/build/packages/operator/src/utils/operationErrorMessages.d.ts +1 -0
  17. package/build/packages/provisioner/src/resources/resource.d.ts +1 -4
  18. package/build/packages/terraform_provisioner/src/resolutor/index.d.ts +1 -0
  19. package/build/packages/terraform_provisioner/src/resolutor/resolver.d.ts +1 -0
  20. package/package.json +1 -1
  21. package/build/packages/cdk8s_renderer/src/claims/base/schemas/sync-config.schema.d.ts +0 -47
@@ -2491,7 +2491,9 @@ export declare enum FirestartrTerraformWorkspaceSpecReferencesRefKind {
2491
2491
  /** FirestartrTerraformWorkspace */
2492
2492
  FIRESTARTR_TERRAFORM_WORKSPACE = "FirestartrTerraformWorkspace",
2493
2493
  /** ExternalSecret */
2494
- EXTERNAL_SECRET = "ExternalSecret"
2494
+ EXTERNAL_SECRET = "ExternalSecret",
2495
+ /** Secret */
2496
+ SECRET = "Secret"
2495
2497
  }
2496
2498
  /**
2497
2499
  * @schema FirestartrTerraformWorkspaceSpecContextBackendRefKind
@@ -91,12 +91,6 @@ declare const _default: {
91
91
  };
92
92
  additionalProperties: boolean;
93
93
  };
94
- PolicyType: {
95
- $id: string;
96
- type: string;
97
- description: string;
98
- enum: string[];
99
- };
100
94
  };
101
95
  };
102
96
  export default _default;
@@ -95,57 +95,6 @@ declare const schemas: {
95
95
  };
96
96
  additionalProperties: boolean;
97
97
  };
98
- PolicyType: {
99
- $id: string;
100
- type: string;
101
- description: string;
102
- enum: string[];
103
- };
104
- };
105
- } | {
106
- $id: string;
107
- definitions: {
108
- SyncConfig: {
109
- $id: string;
110
- type: string;
111
- description: string;
112
- properties: {
113
- enabled: {
114
- type: string;
115
- description: string;
116
- };
117
- period: {
118
- type: string;
119
- pattern: string;
120
- description: string;
121
- };
122
- schedule: {
123
- type: string;
124
- description: string;
125
- };
126
- schedule_timezone: {
127
- type: string;
128
- description: string;
129
- };
130
- policy: {
131
- type: string;
132
- description: string;
133
- };
134
- };
135
- additionalProperties: boolean;
136
- required: string[];
137
- oneOf: ({
138
- required: string[];
139
- not?: undefined;
140
- } | {
141
- not: {
142
- anyOf: {
143
- required: string[];
144
- }[];
145
- };
146
- required?: undefined;
147
- })[];
148
- };
149
98
  };
150
99
  } | {
151
100
  $schema: string;
@@ -430,9 +379,6 @@ declare const schemas: {
430
379
  } | {
431
380
  type: string;
432
381
  properties: {
433
- policy: {
434
- $ref: string;
435
- };
436
382
  privacy: {
437
383
  type: string;
438
384
  enum: string[];
@@ -443,9 +389,6 @@ declare const schemas: {
443
389
  org: {
444
390
  type: string;
445
391
  };
446
- sync: {
447
- $ref: string;
448
- };
449
392
  };
450
393
  required: string[];
451
394
  $ref?: undefined;
@@ -468,9 +411,6 @@ declare const schemas: {
468
411
  } | {
469
412
  type: string;
470
413
  properties: {
471
- policy: {
472
- $ref: string;
473
- };
474
414
  role: {
475
415
  type: string;
476
416
  enum: string[];
@@ -478,9 +418,6 @@ declare const schemas: {
478
418
  org: {
479
419
  type: string;
480
420
  };
481
- sync: {
482
- $ref: string;
483
- };
484
421
  };
485
422
  required: string[];
486
423
  $ref?: undefined;
@@ -548,9 +485,6 @@ declare const schemas: {
548
485
  } | {
549
486
  type: string;
550
487
  properties: {
551
- policy: {
552
- $ref: string;
553
- };
554
488
  org: {
555
489
  type: string;
556
490
  description: string;
@@ -559,9 +493,6 @@ declare const schemas: {
559
493
  type: string;
560
494
  enum: string[];
561
495
  };
562
- sync: {
563
- $ref: string;
564
- };
565
496
  features: {
566
497
  type: string;
567
498
  items: {
@@ -596,9 +527,6 @@ declare const schemas: {
596
527
  } | {
597
528
  type: string;
598
529
  properties: {
599
- policy: {
600
- $ref: string;
601
- };
602
530
  orgName: {
603
531
  type: string;
604
532
  description: string;
@@ -632,9 +560,6 @@ declare const schemas: {
632
560
  };
633
561
  required: string[];
634
562
  };
635
- sync: {
636
- $ref: string;
637
- };
638
563
  };
639
564
  required: string[];
640
565
  $ref?: undefined;
@@ -739,7 +664,8 @@ declare const schemas: {
739
664
  type: string;
740
665
  properties: {
741
666
  policy: {
742
- $ref: string;
667
+ type: string;
668
+ enum: string[];
743
669
  };
744
670
  name: {
745
671
  type: string;
@@ -749,7 +675,38 @@ declare const schemas: {
749
675
  enum: string[];
750
676
  };
751
677
  sync: {
752
- $ref: string;
678
+ type: string;
679
+ properties: {
680
+ enabled: {
681
+ type: string;
682
+ };
683
+ period: {
684
+ type: string;
685
+ pattern: string;
686
+ };
687
+ schedule: {
688
+ type: string;
689
+ };
690
+ schedule_timezone: {
691
+ type: string;
692
+ };
693
+ policy: {
694
+ type: string;
695
+ };
696
+ };
697
+ additionalProperties: boolean;
698
+ required: string[];
699
+ oneOf: ({
700
+ required: string[];
701
+ not?: undefined;
702
+ } | {
703
+ not: {
704
+ anyOf: {
705
+ required: string[];
706
+ }[];
707
+ };
708
+ required?: undefined;
709
+ })[];
753
710
  };
754
711
  valuesSchema: {
755
712
  type: string;
@@ -15,9 +15,6 @@ declare const _default: {
15
15
  } | {
16
16
  type: string;
17
17
  properties: {
18
- policy: {
19
- $ref: string;
20
- };
21
18
  org: {
22
19
  type: string;
23
20
  description: string;
@@ -26,9 +23,6 @@ declare const _default: {
26
23
  type: string;
27
24
  enum: string[];
28
25
  };
29
- sync: {
30
- $ref: string;
31
- };
32
26
  features: {
33
27
  type: string;
34
28
  items: {
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  privacy: {
21
18
  type: string;
22
19
  enum: string[];
@@ -27,9 +24,6 @@ declare const _default: {
27
24
  org: {
28
25
  type: string;
29
26
  };
30
- sync: {
31
- $ref: string;
32
- };
33
27
  };
34
28
  required: string[];
35
29
  $ref?: undefined;
@@ -14,9 +14,6 @@ export declare const GithubSchemas: ({
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  privacy: {
21
18
  type: string;
22
19
  enum: string[];
@@ -27,9 +24,6 @@ export declare const GithubSchemas: ({
27
24
  org: {
28
25
  type: string;
29
26
  };
30
- sync: {
31
- $ref: string;
32
- };
33
27
  };
34
28
  required: string[];
35
29
  $ref?: undefined;
@@ -52,9 +46,6 @@ export declare const GithubSchemas: ({
52
46
  } | {
53
47
  type: string;
54
48
  properties: {
55
- policy: {
56
- $ref: string;
57
- };
58
49
  role: {
59
50
  type: string;
60
51
  enum: string[];
@@ -62,9 +53,6 @@ export declare const GithubSchemas: ({
62
53
  org: {
63
54
  type: string;
64
55
  };
65
- sync: {
66
- $ref: string;
67
- };
68
56
  };
69
57
  required: string[];
70
58
  $ref?: undefined;
@@ -132,9 +120,6 @@ export declare const GithubSchemas: ({
132
120
  } | {
133
121
  type: string;
134
122
  properties: {
135
- policy: {
136
- $ref: string;
137
- };
138
123
  org: {
139
124
  type: string;
140
125
  description: string;
@@ -143,9 +128,6 @@ export declare const GithubSchemas: ({
143
128
  type: string;
144
129
  enum: string[];
145
130
  };
146
- sync: {
147
- $ref: string;
148
- };
149
131
  features: {
150
132
  type: string;
151
133
  items: {
@@ -180,9 +162,6 @@ export declare const GithubSchemas: ({
180
162
  } | {
181
163
  type: string;
182
164
  properties: {
183
- policy: {
184
- $ref: string;
185
- };
186
165
  orgName: {
187
166
  type: string;
188
167
  description: string;
@@ -216,9 +195,6 @@ export declare const GithubSchemas: ({
216
195
  };
217
196
  required: string[];
218
197
  };
219
- sync: {
220
- $ref: string;
221
- };
222
198
  };
223
199
  required: string[];
224
200
  $ref?: undefined;
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  orgName: {
21
18
  type: string;
22
19
  description: string;
@@ -50,9 +47,6 @@ declare const _default: {
50
47
  };
51
48
  required: string[];
52
49
  };
53
- sync: {
54
- $ref: string;
55
- };
56
50
  };
57
51
  required: string[];
58
52
  $ref?: undefined;
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  role: {
21
18
  type: string;
22
19
  enum: string[];
@@ -24,9 +21,6 @@ declare const _default: {
24
21
  org: {
25
22
  type: string;
26
23
  };
27
- sync: {
28
- $ref: string;
29
- };
30
24
  };
31
25
  required: string[];
32
26
  $ref?: undefined;
@@ -14,7 +14,8 @@ export declare const TerraformSchemas: {
14
14
  type: string;
15
15
  properties: {
16
16
  policy: {
17
- $ref: string;
17
+ type: string;
18
+ enum: string[];
18
19
  };
19
20
  name: {
20
21
  type: string;
@@ -24,7 +25,38 @@ export declare const TerraformSchemas: {
24
25
  enum: string[];
25
26
  };
26
27
  sync: {
27
- $ref: string;
28
+ type: string;
29
+ properties: {
30
+ enabled: {
31
+ type: string;
32
+ };
33
+ period: {
34
+ type: string;
35
+ pattern: string;
36
+ };
37
+ schedule: {
38
+ type: string;
39
+ };
40
+ schedule_timezone: {
41
+ type: string;
42
+ };
43
+ policy: {
44
+ type: string;
45
+ };
46
+ };
47
+ additionalProperties: boolean;
48
+ required: string[];
49
+ oneOf: ({
50
+ required: string[];
51
+ not?: undefined;
52
+ } | {
53
+ not: {
54
+ anyOf: {
55
+ required: string[];
56
+ }[];
57
+ };
58
+ required?: undefined;
59
+ })[];
28
60
  };
29
61
  valuesSchema: {
30
62
  type: string;
@@ -14,7 +14,8 @@ declare const _default: {
14
14
  type: string;
15
15
  properties: {
16
16
  policy: {
17
- $ref: string;
17
+ type: string;
18
+ enum: string[];
18
19
  };
19
20
  name: {
20
21
  type: string;
@@ -24,7 +25,38 @@ declare const _default: {
24
25
  enum: string[];
25
26
  };
26
27
  sync: {
27
- $ref: string;
28
+ type: string;
29
+ properties: {
30
+ enabled: {
31
+ type: string;
32
+ };
33
+ period: {
34
+ type: string;
35
+ pattern: string;
36
+ };
37
+ schedule: {
38
+ type: string;
39
+ };
40
+ schedule_timezone: {
41
+ type: string;
42
+ };
43
+ policy: {
44
+ type: string;
45
+ };
46
+ };
47
+ additionalProperties: boolean;
48
+ required: string[];
49
+ oneOf: ({
50
+ required: string[];
51
+ not?: undefined;
52
+ } | {
53
+ not: {
54
+ anyOf: {
55
+ required: string[];
56
+ }[];
57
+ };
58
+ required?: undefined;
59
+ })[];
28
60
  };
29
61
  valuesSchema: {
30
62
  type: string;
@@ -2,5 +2,5 @@ import { RenderClaims } from '../renderer/types';
2
2
  export declare function extractRefs(renderClaims: RenderClaims, kind: string): any;
3
3
  export declare function extractAllRefs(claimData: string): any[];
4
4
  export declare function getGroupParentRef(parent: string, references?: any[]): any[];
5
- export declare function getTfWorkspacesRefs(values: any, references?: any[]): any[];
5
+ export declare function getTfWorkspacesRefs(values: any, references?: any[], secretsRefs?: any[]): any[][];
6
6
  export declare function getComponentVarsAndSecretsRefs(parsedClaim: any): string[];
@@ -8,6 +8,7 @@ export default class CRStateMetrics {
8
8
  planningGauge: any;
9
9
  deletedGauge: any;
10
10
  errorGauge: any;
11
+ errorOnSyncGauge: any;
11
12
  onUpdate: boolean;
12
13
  namespace: string;
13
14
  kc: any;
@@ -14,6 +14,7 @@ export type SyncStatus = {
14
14
  syncStatusPresent?: boolean;
15
15
  intervalLapsed?: boolean;
16
16
  syncMode?: SyncMode;
17
+ hasSyncFailed?: boolean;
17
18
  };
18
19
  export type SyncWatcher = {
19
20
  itemPath: string;
@@ -1,9 +1,2 @@
1
1
  export declare function replaceConfigSecrets(config: any, secrets: any): any;
2
2
  export declare function replaceInlineSecrets(inline: string, secrets: any): string;
3
- /**
4
- * Retrieves a policy annotation value from a custom resource
5
- * @param item - The CR to get the policy from
6
- * @param annotation - The annotation key to retrieve
7
- * @returns The policy value, or undefined if not set
8
- */
9
- export declare function getPolicy(item: any, annotation: string): string | undefined;
@@ -1,3 +1,4 @@
1
1
  export declare const APPLY_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform apply operation.";
2
2
  export declare const DESTROY_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform destroy operation.";
3
3
  export declare const PLAN_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform plan operation.";
4
+ export declare const SYNC_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Sync operation.";
@@ -14,13 +14,10 @@ export declare class Resource {
14
14
  onTFStreaming(): Promise<void>;
15
15
  setLogStream(fnData: Function, fnEnd: Function, reopen?: boolean): void;
16
16
  constructor(mainCR: any, operation: string, deps?: any[]);
17
- run(options?: {
18
- planOnly?: boolean;
19
- }): Promise<void>;
17
+ run(): Promise<void>;
20
18
  artifact(): any;
21
19
  synth(): Promise<void>;
22
20
  log(msg: string): void;
23
- runTerraformPlanOnly(): Promise<void>;
24
21
  runTerraform(): Promise<void>;
25
22
  preprocess(): Promise<void>;
26
23
  postprocess(): Promise<void>;
@@ -1,2 +1,3 @@
1
1
  export { getRefNameFromKey, resolveRef, resolveScalar } from './resolver';
2
2
  export declare function resolveValues(values: any, refs: any): any;
3
+ export declare function resolveClaimSecrets(values: any, refs: any): any;
@@ -1,3 +1,4 @@
1
1
  export declare function resolveScalar(value: any, refs: any): any;
2
2
  export declare function getRefNameFromKey(key: string): string;
3
+ export declare function resolveClaimSecret(value: string, refs: any): any;
3
4
  export declare function resolveRef(key: string, references: any, wantsInterpolation?: boolean): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.54.0-snapshot-1",
3
+ "version": "1.54.0-snapshot-2",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",
@@ -1,47 +0,0 @@
1
- declare const _default: {
2
- $id: string;
3
- definitions: {
4
- SyncConfig: {
5
- $id: string;
6
- type: string;
7
- description: string;
8
- properties: {
9
- enabled: {
10
- type: string;
11
- description: string;
12
- };
13
- period: {
14
- type: string;
15
- pattern: string;
16
- description: string;
17
- };
18
- schedule: {
19
- type: string;
20
- description: string;
21
- };
22
- schedule_timezone: {
23
- type: string;
24
- description: string;
25
- };
26
- policy: {
27
- type: string;
28
- description: string;
29
- };
30
- };
31
- additionalProperties: boolean;
32
- required: string[];
33
- oneOf: ({
34
- required: string[];
35
- not?: undefined;
36
- } | {
37
- not: {
38
- anyOf: {
39
- required: string[];
40
- }[];
41
- };
42
- required?: undefined;
43
- })[];
44
- };
45
- };
46
- };
47
- export default _default;