@firestartr/cli 1.54.0-snapshot-7 → 1.54.0-snapshot-8
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/build/index.js +19 -131
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +0 -27
- package/build/packages/cdk8s_renderer/src/charts/catalog/tfWorkspaceChart.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +16 -23
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +16 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +16 -0
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/index.d.ts +0 -23
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/terraform.schema.d.ts +0 -23
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/tfworkspace.d.ts +0 -6
- package/build/packages/terraform_provisioner/src/project_tf.d.ts +0 -2
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +0 -2
- package/package.json +1 -1
- package/build/packages/terraform_provisioner/src/writer_additional_files.d.ts +0 -13
package/build/index.js
CHANGED
|
@@ -151708,7 +151708,7 @@ module.exports = exports.default;
|
|
|
151708
151708
|
|
|
151709
151709
|
/***/ }),
|
|
151710
151710
|
|
|
151711
|
-
/***/
|
|
151711
|
+
/***/ 60762:
|
|
151712
151712
|
/***/ ((module, exports) => {
|
|
151713
151713
|
|
|
151714
151714
|
|
|
@@ -151775,7 +151775,7 @@ var _isArrayLike = __nccwpck_require__(10860);
|
|
|
151775
151775
|
|
|
151776
151776
|
var _isArrayLike2 = _interopRequireDefault(_isArrayLike);
|
|
151777
151777
|
|
|
151778
|
-
var _getIterator = __nccwpck_require__(
|
|
151778
|
+
var _getIterator = __nccwpck_require__(60762);
|
|
151779
151779
|
|
|
151780
151780
|
var _getIterator2 = _interopRequireDefault(_getIterator);
|
|
151781
151781
|
|
|
@@ -357285,13 +357285,10 @@ class RevisionNormalizer extends Normalizer {
|
|
|
357285
357285
|
}
|
|
357286
357286
|
}
|
|
357287
357287
|
|
|
357288
|
-
// EXTERNAL MODULE: external "fs/promises"
|
|
357289
|
-
var external_fs_promises_ = __nccwpck_require__(73292);
|
|
357290
357288
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/normalizers/tfworkspace.ts
|
|
357291
357289
|
|
|
357292
357290
|
|
|
357293
357291
|
|
|
357294
|
-
|
|
357295
357292
|
class TFWorkspaceNormalizer extends Normalizer {
|
|
357296
357293
|
constructor() {
|
|
357297
357294
|
super(...arguments);
|
|
@@ -357319,15 +357316,6 @@ class TFWorkspaceNormalizer extends Normalizer {
|
|
|
357319
357316
|
const normalizedContent = await normalizeModuleContent(dirTfRootModule);
|
|
357320
357317
|
cr.spec['module'] = normalizedContent;
|
|
357321
357318
|
}
|
|
357322
|
-
if ('files' in claim.providers.terraform) {
|
|
357323
|
-
try {
|
|
357324
|
-
const additionalFiles = await loadAdditionalFiles(claim.providers.terraform['files'], external_path_.dirname(claimPath));
|
|
357325
|
-
cr.spec['files'] = additionalFiles;
|
|
357326
|
-
}
|
|
357327
|
-
catch (err) {
|
|
357328
|
-
throw new Error(`Loading additional files for TFWorkspace: ${claim.name}: ${err && err.message ? err.message : err}`);
|
|
357329
|
-
}
|
|
357330
|
-
}
|
|
357331
357319
|
return cr;
|
|
357332
357320
|
},
|
|
357333
357321
|
identify() {
|
|
@@ -357356,33 +357344,6 @@ ${files[entry]}
|
|
|
357356
357344
|
});
|
|
357357
357345
|
return content;
|
|
357358
357346
|
}
|
|
357359
|
-
async function loadAdditionalFiles(files, tfRootModulePath) {
|
|
357360
|
-
const specFiles = [];
|
|
357361
|
-
for (const additionalFile of files) {
|
|
357362
|
-
const specFile = {
|
|
357363
|
-
path: additionalFile.destination,
|
|
357364
|
-
content: await loadAdditionalFile(additionalFile.source, tfRootModulePath),
|
|
357365
|
-
};
|
|
357366
|
-
specFiles.push(specFile);
|
|
357367
|
-
}
|
|
357368
|
-
return specFiles;
|
|
357369
|
-
}
|
|
357370
|
-
async function loadAdditionalFile(source, tfRootModulePath) {
|
|
357371
|
-
try {
|
|
357372
|
-
const filePath = external_path_.join(tfRootModulePath, source);
|
|
357373
|
-
const stats = await external_fs_promises_.stat(filePath);
|
|
357374
|
-
if (!stats.isFile()) {
|
|
357375
|
-
throw new Error(`${source} is not a file`);
|
|
357376
|
-
}
|
|
357377
|
-
const content = await external_fs_promises_.readFile(filePath, {
|
|
357378
|
-
encoding: 'utf8',
|
|
357379
|
-
});
|
|
357380
|
-
return Buffer.from(content, 'utf8').toString('base64');
|
|
357381
|
-
}
|
|
357382
|
-
catch (err) {
|
|
357383
|
-
throw new Error(`Loading additional tfworkspace file ${source}: ${err && err.message ? err.message : err}`);
|
|
357384
|
-
}
|
|
357385
|
-
}
|
|
357386
357347
|
function validatek8sLimits(moduleContent) {
|
|
357387
357348
|
const moduleLength = moduleContent.length;
|
|
357388
357349
|
return moduleLength > 0 && moduleLength < 750000;
|
|
@@ -358145,10 +358106,26 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
358145
358106
|
type: 'string',
|
|
358146
358107
|
description: 'The github organization name',
|
|
358147
358108
|
},
|
|
358109
|
+
name: {
|
|
358110
|
+
type: 'string',
|
|
358111
|
+
description: 'The github repo name',
|
|
358112
|
+
},
|
|
358113
|
+
orgPermissions: {
|
|
358114
|
+
type: 'string',
|
|
358115
|
+
description: 'The level of org Permission',
|
|
358116
|
+
},
|
|
358117
|
+
archiveOnDestroy: {
|
|
358118
|
+
type: 'boolean',
|
|
358119
|
+
description: 'whether this repo should be archived when the claim is deleted',
|
|
358120
|
+
},
|
|
358148
358121
|
visibility: {
|
|
358149
358122
|
type: 'string',
|
|
358150
358123
|
enum: ['private', 'public', 'internal'],
|
|
358151
358124
|
},
|
|
358125
|
+
description: {
|
|
358126
|
+
type: 'string',
|
|
358127
|
+
description: 'The purpose of this repo',
|
|
358128
|
+
},
|
|
358152
358129
|
features: {
|
|
358153
358130
|
type: 'array',
|
|
358154
358131
|
items: {
|
|
@@ -358384,26 +358361,6 @@ const GithubSchemas = [
|
|
|
358384
358361
|
/* harmony default export */ const terraform_schema = ({
|
|
358385
358362
|
$id: 'TerraformProvider',
|
|
358386
358363
|
definitions: {
|
|
358387
|
-
TerraformProviderFiles: {
|
|
358388
|
-
$id: 'firestartr.dev://terraform/TerraformProviderFiles',
|
|
358389
|
-
description: 'A list of files included in the terraform project',
|
|
358390
|
-
type: 'array',
|
|
358391
|
-
items: {
|
|
358392
|
-
type: 'object',
|
|
358393
|
-
properties: {
|
|
358394
|
-
source: {
|
|
358395
|
-
type: 'string',
|
|
358396
|
-
description: 'path of the original file to include in the final CR',
|
|
358397
|
-
},
|
|
358398
|
-
destination: {
|
|
358399
|
-
type: 'string',
|
|
358400
|
-
description: 'path where the file will be placed in the final terraform project',
|
|
358401
|
-
},
|
|
358402
|
-
},
|
|
358403
|
-
additionalProperties: false,
|
|
358404
|
-
required: ['source', 'destination'],
|
|
358405
|
-
},
|
|
358406
|
-
},
|
|
358407
358364
|
TerraformProvider: {
|
|
358408
358365
|
$id: 'firestartr.dev://terraform/TerraformProvider',
|
|
358409
358366
|
type: 'object',
|
|
@@ -358433,9 +358390,6 @@ const GithubSchemas = [
|
|
|
358433
358390
|
type: 'string',
|
|
358434
358391
|
enum: ['remote', 'inline', 'Remote', 'Inline'],
|
|
358435
358392
|
},
|
|
358436
|
-
files: {
|
|
358437
|
-
$ref: 'firestartr.dev://terraform/TerraformProviderFiles',
|
|
358438
|
-
},
|
|
358439
358393
|
sync: {
|
|
358440
358394
|
type: 'object',
|
|
358441
358395
|
properties: {
|
|
@@ -363451,7 +363405,6 @@ function toJson_FirestartrTerraformWorkspaceSpec(obj) {
|
|
|
363451
363405
|
'module': obj.module,
|
|
363452
363406
|
'source': obj.source,
|
|
363453
363407
|
'values': obj.values,
|
|
363454
|
-
'files': obj.files?.map(y => toJson_FirestartrTerraformWorkspaceSpecFiles(y)),
|
|
363455
363408
|
'references': obj.references?.map(y => toJson_FirestartrTerraformWorkspaceSpecReferences(y)),
|
|
363456
363409
|
'writeConnectionSecretToRef': toJson_FirestartrTerraformWorkspaceSpecWriteConnectionSecretToRef(obj.writeConnectionSecretToRef),
|
|
363457
363410
|
};
|
|
@@ -363498,21 +363451,6 @@ var FirestartrTerraformWorkspaceSpecSource;
|
|
|
363498
363451
|
/** Inline */
|
|
363499
363452
|
FirestartrTerraformWorkspaceSpecSource["INLINE"] = "Inline";
|
|
363500
363453
|
})(FirestartrTerraformWorkspaceSpecSource || (FirestartrTerraformWorkspaceSpecSource = {}));
|
|
363501
|
-
/**
|
|
363502
|
-
* Converts an object of type 'FirestartrTerraformWorkspaceSpecFiles' to JSON representation.
|
|
363503
|
-
*/
|
|
363504
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
363505
|
-
function toJson_FirestartrTerraformWorkspaceSpecFiles(obj) {
|
|
363506
|
-
if (obj === undefined) {
|
|
363507
|
-
return undefined;
|
|
363508
|
-
}
|
|
363509
|
-
const result = {
|
|
363510
|
-
'content': obj.content,
|
|
363511
|
-
'path': obj.path,
|
|
363512
|
-
};
|
|
363513
|
-
// filter undefined values
|
|
363514
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
363515
|
-
}
|
|
363516
363454
|
/**
|
|
363517
363455
|
* Converts an object of type 'FirestartrTerraformWorkspaceSpecReferences' to JSON representation.
|
|
363518
363456
|
*/
|
|
@@ -369469,7 +369407,7 @@ function provisionRepository(scope, fsGithubRepository) {
|
|
|
369469
369407
|
allowAutoMerge: fsGithubRepository.spec.repo.allowAutoMerge,
|
|
369470
369408
|
deleteBranchOnMerge: fsGithubRepository.spec.repo.deleteBranchOnMerge,
|
|
369471
369409
|
autoInit: fsGithubRepository.spec.repo.autoInit,
|
|
369472
|
-
archiveOnDestroy:
|
|
369410
|
+
archiveOnDestroy: fsGithubRepository.spec.repo.archiveOnDestroy,
|
|
369473
369411
|
allowUpdateBranch: fsGithubRepository.spec.repo.allowUpdateBranch,
|
|
369474
369412
|
hasIssues: fsGithubRepository.spec.repo.hasIssues,
|
|
369475
369413
|
visibility: fsGithubRepository.spec.repo.visibility,
|
|
@@ -372374,37 +372312,6 @@ class WriterProviderJson extends writer {
|
|
|
372374
372312
|
}
|
|
372375
372313
|
}
|
|
372376
372314
|
|
|
372377
|
-
;// CONCATENATED MODULE: ../terraform_provisioner/src/writer_additional_files.ts
|
|
372378
|
-
|
|
372379
|
-
|
|
372380
|
-
|
|
372381
|
-
class WriterAdditionalFiles extends writer {
|
|
372382
|
-
constructor(files) {
|
|
372383
|
-
super();
|
|
372384
|
-
this.files = files;
|
|
372385
|
-
}
|
|
372386
|
-
// this writer does not "write" anything per se
|
|
372387
|
-
// it just complies with the abstract class it inherits from
|
|
372388
|
-
async _render() {
|
|
372389
|
-
return '';
|
|
372390
|
-
}
|
|
372391
|
-
async writeToTerraformProject(projectPath) {
|
|
372392
|
-
for (const file of this.files) {
|
|
372393
|
-
try {
|
|
372394
|
-
const targetPath = external_path_.resolve(projectPath, file.path);
|
|
372395
|
-
const absProjectPath = external_path_.resolve(projectPath);
|
|
372396
|
-
if (!targetPath.startsWith(absProjectPath + external_path_.sep)) {
|
|
372397
|
-
throw new Error(`Path traversal detected: ${file.path}`);
|
|
372398
|
-
}
|
|
372399
|
-
await external_fs_promises_.writeFile(targetPath, Buffer.from(file.content, 'base64').toString('utf8'));
|
|
372400
|
-
}
|
|
372401
|
-
catch (err) {
|
|
372402
|
-
throw new Error(`Error writing additional file: ${file.path}: ${err}`);
|
|
372403
|
-
}
|
|
372404
|
-
}
|
|
372405
|
-
}
|
|
372406
|
-
}
|
|
372407
|
-
|
|
372408
372315
|
;// CONCATENATED MODULE: ../terraform_provisioner/src/project_tf.ts
|
|
372409
372316
|
|
|
372410
372317
|
|
|
@@ -372412,7 +372319,6 @@ class WriterAdditionalFiles extends writer {
|
|
|
372412
372319
|
|
|
372413
372320
|
|
|
372414
372321
|
|
|
372415
|
-
|
|
372416
372322
|
class project_tf_TFProjectManager {
|
|
372417
372323
|
constructor(ctx) {
|
|
372418
372324
|
this.tfOutput = '';
|
|
@@ -372420,9 +372326,6 @@ class project_tf_TFProjectManager {
|
|
|
372420
372326
|
this.mainTfWriter = new WriterMainTf(ctx.inline, ctx.requiredProviders, ctx.backend, ctx.tfStateKey);
|
|
372421
372327
|
this.providerJsonWriter = new WriterProviderJson(ctx.inline, ctx.requiredProviders, ctx.backend, ctx.tfStateKey);
|
|
372422
372328
|
this.tfVarsJsonWriter = new WriterTfVarsJson(ctx.values, ctx.references);
|
|
372423
|
-
if ('files' in ctx) {
|
|
372424
|
-
this.additionalFilesWriter = new WriterAdditionalFiles(ctx['files']);
|
|
372425
|
-
}
|
|
372426
372329
|
this.secrets = ctx.secrets;
|
|
372427
372330
|
}
|
|
372428
372331
|
setStreamCallbacks(fnData, fnEnd, reopen = true) {
|
|
@@ -372443,10 +372346,6 @@ class project_tf_TFProjectManager {
|
|
|
372443
372346
|
this.providerJsonWriter.writeToTerraformProject(external_path_.join(this.projectPath, 'firestartr-providers.tf.json'));
|
|
372444
372347
|
await this.tfVarsJsonWriter.render();
|
|
372445
372348
|
this.tfVarsJsonWriter.writeToTerraformProject(external_path_.join(this.projectPath, 'terraform.tfvars.json'));
|
|
372446
|
-
if (this.additionalFilesWriter) {
|
|
372447
|
-
await this.additionalFilesWriter.render();
|
|
372448
|
-
await this.additionalFilesWriter.writeToTerraformProject(this.projectPath);
|
|
372449
|
-
}
|
|
372450
372349
|
}
|
|
372451
372350
|
async __init() {
|
|
372452
372351
|
this.tfOutput += await init(this.projectPath, this.secrets, this.stream);
|
|
@@ -372578,7 +372477,6 @@ var lib_ajv_default = /*#__PURE__*/__nccwpck_require__.n(lib_ajv);
|
|
|
372578
372477
|
|
|
372579
372478
|
|
|
372580
372479
|
|
|
372581
|
-
|
|
372582
372480
|
class TFProjectManagerRemote {
|
|
372583
372481
|
constructor(ctx) {
|
|
372584
372482
|
this.tfOutput = '';
|
|
@@ -372587,9 +372485,6 @@ class TFProjectManagerRemote {
|
|
|
372587
372485
|
this.secrets = ctx.secrets;
|
|
372588
372486
|
this.writerTerraform = new WriterTerraform(ctx.requiredProviders, ctx.backend, ctx.tfStateKey, false);
|
|
372589
372487
|
this.providerJsonWriter = new WriterProviderJson(ctx.inline, ctx.requiredProviders, ctx.backend, ctx.tfStateKey);
|
|
372590
|
-
if ('files' in ctx) {
|
|
372591
|
-
this.additionalFilesWriter = new WriterAdditionalFiles(ctx['files']);
|
|
372592
|
-
}
|
|
372593
372488
|
this.tfVarsJsonWriter = new WriterTfVarsJson(ctx.values, ctx.references);
|
|
372594
372489
|
}
|
|
372595
372490
|
getOutput() {
|
|
@@ -372613,10 +372508,6 @@ class TFProjectManagerRemote {
|
|
|
372613
372508
|
this.providerJsonWriter.writeToTerraformProject(external_path_.join(this.projectPath, 'firestartr-providers.tf.json'));
|
|
372614
372509
|
await this.tfVarsJsonWriter.render();
|
|
372615
372510
|
this.tfVarsJsonWriter.writeToTerraformProject(external_path_.join(this.projectPath, 'terraform.tfvars.json'));
|
|
372616
|
-
if (this.additionalFilesWriter) {
|
|
372617
|
-
await this.additionalFilesWriter.render();
|
|
372618
|
-
await this.additionalFilesWriter.writeToTerraformProject(this.projectPath);
|
|
372619
|
-
}
|
|
372620
372511
|
}
|
|
372621
372512
|
async __configGit() {
|
|
372622
372513
|
external_fs_.existsSync('/home/node/.gitconfig') &&
|
|
@@ -373527,9 +373418,6 @@ function buildProvisionerContext(item, deps) {
|
|
|
373527
373418
|
context['type'] = item.spec.source;
|
|
373528
373419
|
context['inline'] = item.spec.module;
|
|
373529
373420
|
context['module'] = item.spec.module;
|
|
373530
|
-
if ('files' in item.spec) {
|
|
373531
|
-
context['files'] = item.spec.files;
|
|
373532
|
-
}
|
|
373533
373421
|
context['values'] = JSON.parse(item.spec.values);
|
|
373534
373422
|
const result = adaptProviders(item, deps);
|
|
373535
373423
|
context['requiredProviders'] = result.providers;
|
|
@@ -2308,12 +2308,6 @@ export interface FirestartrTerraformWorkspaceSpec {
|
|
|
2308
2308
|
* @schema FirestartrTerraformWorkspaceSpec#values
|
|
2309
2309
|
*/
|
|
2310
2310
|
readonly values?: string;
|
|
2311
|
-
/**
|
|
2312
|
-
* A list of files to be created in the Terraform workspace directory.
|
|
2313
|
-
*
|
|
2314
|
-
* @schema FirestartrTerraformWorkspaceSpec#files
|
|
2315
|
-
*/
|
|
2316
|
-
readonly files?: FirestartrTerraformWorkspaceSpecFiles[];
|
|
2317
2311
|
/**
|
|
2318
2312
|
* @schema FirestartrTerraformWorkspaceSpec#references
|
|
2319
2313
|
*/
|
|
@@ -2366,27 +2360,6 @@ export declare enum FirestartrTerraformWorkspaceSpecSource {
|
|
|
2366
2360
|
/** Inline */
|
|
2367
2361
|
INLINE = "Inline"
|
|
2368
2362
|
}
|
|
2369
|
-
/**
|
|
2370
|
-
* @schema FirestartrTerraformWorkspaceSpecFiles
|
|
2371
|
-
*/
|
|
2372
|
-
export interface FirestartrTerraformWorkspaceSpecFiles {
|
|
2373
|
-
/**
|
|
2374
|
-
* The base64 encoded content of the file.
|
|
2375
|
-
*
|
|
2376
|
-
* @schema FirestartrTerraformWorkspaceSpecFiles#content
|
|
2377
|
-
*/
|
|
2378
|
-
readonly content: string;
|
|
2379
|
-
/**
|
|
2380
|
-
* The target relative path for the file within the Terraform workspace directory.
|
|
2381
|
-
*
|
|
2382
|
-
* @schema FirestartrTerraformWorkspaceSpecFiles#path
|
|
2383
|
-
*/
|
|
2384
|
-
readonly path: string;
|
|
2385
|
-
}
|
|
2386
|
-
/**
|
|
2387
|
-
* Converts an object of type 'FirestartrTerraformWorkspaceSpecFiles' to JSON representation.
|
|
2388
|
-
*/
|
|
2389
|
-
export declare function toJson_FirestartrTerraformWorkspaceSpecFiles(obj: FirestartrTerraformWorkspaceSpecFiles | undefined): Record<string, any> | undefined;
|
|
2390
2363
|
/**
|
|
2391
2364
|
* @schema FirestartrTerraformWorkspaceSpecReferences
|
|
2392
2365
|
*/
|
|
@@ -20,7 +20,6 @@ export declare class CatalogTFWorkspaceChart extends BaseCatalogChart {
|
|
|
20
20
|
source: import("../../../imports/firestartr.dev").FirestartrTerraformWorkspaceSpecSource;
|
|
21
21
|
module: string;
|
|
22
22
|
values: any;
|
|
23
|
-
files: import("../../claims/tfworkspaces/tfworkspace").TerraformProviderAdditionalFiles;
|
|
24
23
|
context: {
|
|
25
24
|
providers: {
|
|
26
25
|
name: string;
|
|
@@ -489,10 +489,26 @@ declare const schemas: {
|
|
|
489
489
|
type: string;
|
|
490
490
|
description: string;
|
|
491
491
|
};
|
|
492
|
+
name: {
|
|
493
|
+
type: string;
|
|
494
|
+
description: string;
|
|
495
|
+
};
|
|
496
|
+
orgPermissions: {
|
|
497
|
+
type: string;
|
|
498
|
+
description: string;
|
|
499
|
+
};
|
|
500
|
+
archiveOnDestroy: {
|
|
501
|
+
type: string;
|
|
502
|
+
description: string;
|
|
503
|
+
};
|
|
492
504
|
visibility: {
|
|
493
505
|
type: string;
|
|
494
506
|
enum: string[];
|
|
495
507
|
};
|
|
508
|
+
description: {
|
|
509
|
+
type: string;
|
|
510
|
+
description: string;
|
|
511
|
+
};
|
|
496
512
|
features: {
|
|
497
513
|
type: string;
|
|
498
514
|
items: {
|
|
@@ -659,26 +675,6 @@ declare const schemas: {
|
|
|
659
675
|
})[] | {
|
|
660
676
|
$id: string;
|
|
661
677
|
definitions: {
|
|
662
|
-
TerraformProviderFiles: {
|
|
663
|
-
$id: string;
|
|
664
|
-
description: string;
|
|
665
|
-
type: string;
|
|
666
|
-
items: {
|
|
667
|
-
type: string;
|
|
668
|
-
properties: {
|
|
669
|
-
source: {
|
|
670
|
-
type: string;
|
|
671
|
-
description: string;
|
|
672
|
-
};
|
|
673
|
-
destination: {
|
|
674
|
-
type: string;
|
|
675
|
-
description: string;
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
additionalProperties: boolean;
|
|
679
|
-
required: string[];
|
|
680
|
-
};
|
|
681
|
-
};
|
|
682
678
|
TerraformProvider: {
|
|
683
679
|
$id: string;
|
|
684
680
|
type: string;
|
|
@@ -702,9 +698,6 @@ declare const schemas: {
|
|
|
702
698
|
type: string;
|
|
703
699
|
enum: string[];
|
|
704
700
|
};
|
|
705
|
-
files: {
|
|
706
|
-
$ref: string;
|
|
707
|
-
};
|
|
708
701
|
sync: {
|
|
709
702
|
type: string;
|
|
710
703
|
properties: {
|
|
@@ -19,10 +19,26 @@ declare const _default: {
|
|
|
19
19
|
type: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
orgPermissions: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
archiveOnDestroy: {
|
|
31
|
+
type: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
22
34
|
visibility: {
|
|
23
35
|
type: string;
|
|
24
36
|
enum: string[];
|
|
25
37
|
};
|
|
38
|
+
description: {
|
|
39
|
+
type: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
26
42
|
features: {
|
|
27
43
|
type: string;
|
|
28
44
|
items: {
|
|
@@ -124,10 +124,26 @@ export declare const GithubSchemas: ({
|
|
|
124
124
|
type: string;
|
|
125
125
|
description: string;
|
|
126
126
|
};
|
|
127
|
+
name: {
|
|
128
|
+
type: string;
|
|
129
|
+
description: string;
|
|
130
|
+
};
|
|
131
|
+
orgPermissions: {
|
|
132
|
+
type: string;
|
|
133
|
+
description: string;
|
|
134
|
+
};
|
|
135
|
+
archiveOnDestroy: {
|
|
136
|
+
type: string;
|
|
137
|
+
description: string;
|
|
138
|
+
};
|
|
127
139
|
visibility: {
|
|
128
140
|
type: string;
|
|
129
141
|
enum: string[];
|
|
130
142
|
};
|
|
143
|
+
description: {
|
|
144
|
+
type: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
131
147
|
features: {
|
|
132
148
|
type: string;
|
|
133
149
|
items: {
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
export declare const TerraformSchemas: {
|
|
2
2
|
$id: string;
|
|
3
3
|
definitions: {
|
|
4
|
-
TerraformProviderFiles: {
|
|
5
|
-
$id: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: string;
|
|
8
|
-
items: {
|
|
9
|
-
type: string;
|
|
10
|
-
properties: {
|
|
11
|
-
source: {
|
|
12
|
-
type: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
destination: {
|
|
16
|
-
type: string;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
additionalProperties: boolean;
|
|
21
|
-
required: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
4
|
TerraformProvider: {
|
|
25
5
|
$id: string;
|
|
26
6
|
type: string;
|
|
@@ -44,9 +24,6 @@ export declare const TerraformSchemas: {
|
|
|
44
24
|
type: string;
|
|
45
25
|
enum: string[];
|
|
46
26
|
};
|
|
47
|
-
files: {
|
|
48
|
-
$ref: string;
|
|
49
|
-
};
|
|
50
27
|
sync: {
|
|
51
28
|
type: string;
|
|
52
29
|
properties: {
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
$id: string;
|
|
3
3
|
definitions: {
|
|
4
|
-
TerraformProviderFiles: {
|
|
5
|
-
$id: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: string;
|
|
8
|
-
items: {
|
|
9
|
-
type: string;
|
|
10
|
-
properties: {
|
|
11
|
-
source: {
|
|
12
|
-
type: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
destination: {
|
|
16
|
-
type: string;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
additionalProperties: boolean;
|
|
21
|
-
required: string[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
4
|
TerraformProvider: {
|
|
25
5
|
$id: string;
|
|
26
6
|
type: string;
|
|
@@ -44,9 +24,6 @@ declare const _default: {
|
|
|
44
24
|
type: string;
|
|
45
25
|
enum: string[];
|
|
46
26
|
};
|
|
47
|
-
files: {
|
|
48
|
-
$ref: string;
|
|
49
|
-
};
|
|
50
27
|
sync: {
|
|
51
28
|
type: string;
|
|
52
29
|
properties: {
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { FirestartrTerraformWorkspaceSpecSource } from '../../../imports/firestartr.dev';
|
|
2
2
|
import { Workspace } from '../base/workspace';
|
|
3
|
-
export interface TerraformProviderAdditionalFile {
|
|
4
|
-
source: string;
|
|
5
|
-
destination: string;
|
|
6
|
-
}
|
|
7
|
-
export type TerraformProviderAdditionalFiles = TerraformProviderAdditionalFile[];
|
|
8
3
|
export interface TFWorkspace extends Workspace {
|
|
9
4
|
kind: 'TFWorkspaceClaim';
|
|
10
5
|
resourceType: string;
|
|
@@ -15,7 +10,6 @@ export interface TFWorkspace extends Workspace {
|
|
|
15
10
|
source: FirestartrTerraformWorkspaceSpecSource.INLINE | FirestartrTerraformWorkspaceSpecSource.REMOTE;
|
|
16
11
|
module: string;
|
|
17
12
|
values: any;
|
|
18
|
-
files: TerraformProviderAdditionalFiles;
|
|
19
13
|
context: {
|
|
20
14
|
providers: {
|
|
21
15
|
name: string;
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
import { WriterMainTf } from './writer_main_tf';
|
|
3
3
|
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
4
4
|
import { WriterProviderJson } from './writer_provider_tf_json';
|
|
5
|
-
import { WriterAdditionalFiles } from './writer_additional_files';
|
|
6
5
|
import { PassThrough } from 'stream';
|
|
7
6
|
export declare class TFProjectManager {
|
|
8
7
|
mainTfWriter: WriterMainTf;
|
|
9
8
|
providerJsonWriter: WriterProviderJson;
|
|
10
9
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
11
|
-
additionalFilesWriter: WriterAdditionalFiles;
|
|
12
10
|
secrets: any[];
|
|
13
11
|
projectPath: string;
|
|
14
12
|
tfOutput: any;
|
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
import { WriterTerraform } from './writer_terraform';
|
|
3
3
|
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
4
4
|
import { WriterProviderJson } from './writer_provider_tf_json';
|
|
5
|
-
import { WriterAdditionalFiles } from './writer_additional_files';
|
|
6
5
|
import { PassThrough } from 'stream';
|
|
7
6
|
export declare class TFProjectManagerRemote {
|
|
8
7
|
writerTerraform: WriterTerraform;
|
|
9
8
|
providerJsonWriter: WriterProviderJson;
|
|
10
9
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
11
|
-
additionalFilesWriter: WriterAdditionalFiles;
|
|
12
10
|
ctx: any;
|
|
13
11
|
secrets: any[];
|
|
14
12
|
projectPath: string;
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Writer from './writer';
|
|
2
|
-
export interface FirestartrTerraformWorkspaceSpecFile {
|
|
3
|
-
content: string;
|
|
4
|
-
path: string;
|
|
5
|
-
}
|
|
6
|
-
type FirestartrTerraformWorkspaceSpecFiles = FirestartrTerraformWorkspaceSpecFile[];
|
|
7
|
-
export declare class WriterAdditionalFiles extends Writer {
|
|
8
|
-
files: FirestartrTerraformWorkspaceSpecFile[];
|
|
9
|
-
constructor(files: FirestartrTerraformWorkspaceSpecFiles);
|
|
10
|
-
_render(): Promise<string>;
|
|
11
|
-
writeToTerraformProject(projectPath: string): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export {};
|