@firestartr/cli 1.55.1-snapshot-2 → 1.55.1-snapshot-4
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
CHANGED
|
@@ -366670,6 +366670,7 @@ class RepoGithubDecanter extends GithubDecanter {
|
|
|
366670
366670
|
name: this.data.branchStrategy.kind,
|
|
366671
366671
|
defaultBranch: this.data.repoDetails.default_branch,
|
|
366672
366672
|
},
|
|
366673
|
+
topics: this.data.repoDetails.topics,
|
|
366673
366674
|
},
|
|
366674
366675
|
},
|
|
366675
366676
|
path: '/providers',
|
|
@@ -368827,7 +368828,6 @@ var WorkStatus;
|
|
|
368827
368828
|
|
|
368828
368829
|
|
|
368829
368830
|
|
|
368830
|
-
|
|
368831
368831
|
const kindsWithFinalizer = [
|
|
368832
368832
|
'FirestartrDummyA',
|
|
368833
368833
|
'FirestartrDummyB',
|
|
@@ -368952,9 +368952,6 @@ function enqueue(pluralKind, workItem, queue, compute, syncCtl, retryCtl) {
|
|
|
368952
368952
|
writeTerraformOutputInTfResult: writeTerraformOuputInTFResult,
|
|
368953
368953
|
writeConnectionSecret: writeConnectionSecret,
|
|
368954
368954
|
resolveReferences: () => resolve(workItem.item, getItemByItemPath, getSecret),
|
|
368955
|
-
resolveOwnOutputs: () => {
|
|
368956
|
-
return resolveSecretRef(workItem.item.metadata.namespace, workItem.item, getSecret);
|
|
368957
|
-
},
|
|
368958
368955
|
deleteSecret: () => deleteSecret(workItem.item.spec.writeConnectionSecretToRef.name, workItem.item.metadata.namespace),
|
|
368959
368956
|
itemPath: () => informer_itemPath(pluralKind, workItem.item),
|
|
368960
368957
|
error: () => retryCtl.errorReconciling(informer_itemPath(pluralKind, workItem.item)),
|
|
@@ -369968,13 +369965,10 @@ var lib_provider = __nccwpck_require__(85791);
|
|
|
369968
369965
|
;// CONCATENATED MODULE: ../provisioner/src/entities/base/Entity.ts
|
|
369969
369966
|
|
|
369970
369967
|
const EXTERNAL_NAME_ANNOTATION = 'firestartr.dev/external-name';
|
|
369971
|
-
const IMPORT_SLUG_ANNOTATION = 'firestartr.dev/github-slug';
|
|
369972
|
-
const IMPORT_ID_ANNOTATION = 'firestartr.dev/github-id';
|
|
369973
369968
|
|
|
369974
369969
|
class Metadata {
|
|
369975
|
-
constructor(metadata
|
|
369970
|
+
constructor(metadata) {
|
|
369976
369971
|
this._metadata = metadata;
|
|
369977
|
-
this._resolveOutputs = resolveOutputs;
|
|
369978
369972
|
}
|
|
369979
369973
|
get name() {
|
|
369980
369974
|
if (EXTERNAL_NAME_ANNOTATION in this.annotations) {
|
|
@@ -369984,56 +369978,19 @@ class Metadata {
|
|
|
369984
369978
|
return this._metadata.name;
|
|
369985
369979
|
}
|
|
369986
369980
|
}
|
|
369987
|
-
get slug() {
|
|
369988
|
-
// buscar el slug en los outputs
|
|
369989
|
-
const slug = this._resolveOutputs('slug');
|
|
369990
|
-
if (IMPORT_SLUG_ANNOTATION in this.annotations) {
|
|
369991
|
-
return this.annotations[IMPORT_SLUG_ANNOTATION];
|
|
369992
|
-
}
|
|
369993
|
-
else if (slug) {
|
|
369994
|
-
// hay outputs?
|
|
369995
|
-
return slug;
|
|
369996
|
-
}
|
|
369997
|
-
else {
|
|
369998
|
-
return undefined;
|
|
369999
|
-
}
|
|
370000
|
-
}
|
|
370001
369981
|
get annotations() {
|
|
370002
369982
|
return this._metadata.annotations || {};
|
|
370003
369983
|
}
|
|
370004
369984
|
get labels() {
|
|
370005
369985
|
return this._metadata.labels || {};
|
|
370006
369986
|
}
|
|
370007
|
-
get id() {
|
|
370008
|
-
// buscar el id en los outputs
|
|
370009
|
-
const id = this._resolveOutputs('id');
|
|
370010
|
-
if (IMPORT_ID_ANNOTATION in this.annotations) {
|
|
370011
|
-
return this.annotations[IMPORT_ID_ANNOTATION];
|
|
370012
|
-
}
|
|
370013
|
-
else if (id) {
|
|
370014
|
-
// hay outputs?
|
|
370015
|
-
return id;
|
|
370016
|
-
}
|
|
370017
|
-
else {
|
|
370018
|
-
return undefined;
|
|
370019
|
-
}
|
|
370020
|
-
}
|
|
370021
369987
|
}
|
|
370022
369988
|
class Entity {
|
|
370023
369989
|
constructor(artifact, deps) {
|
|
370024
369990
|
this.importStack = [];
|
|
370025
369991
|
this.kind = artifact.kind;
|
|
370026
369992
|
this.apiVersion = artifact.apiVersion;
|
|
370027
|
-
this.metadata = new Metadata(artifact.metadata
|
|
370028
|
-
if (this.deps && 'self-outputs' in this.deps) {
|
|
370029
|
-
const cr = this.deps['self-outputs'].cr;
|
|
370030
|
-
if (cr && typeof cr.data === 'object') {
|
|
370031
|
-
if (key in cr.data) {
|
|
370032
|
-
return Buffer.from(cr.data[key], 'base64').toString('utf-8');
|
|
370033
|
-
}
|
|
370034
|
-
}
|
|
370035
|
-
}
|
|
370036
|
-
});
|
|
369993
|
+
this.metadata = new Metadata(artifact.metadata);
|
|
370037
369994
|
this.spec = artifact.spec;
|
|
370038
369995
|
if (deps) {
|
|
370039
369996
|
this.deps = deps;
|
|
@@ -370183,14 +370140,14 @@ function provisionPermissions(scope, repo, fsGithubRepository) {
|
|
|
370183
370140
|
if ('ref' in permission) {
|
|
370184
370141
|
const tfStateKey = `_${fsGithubRepository.getTfStateKey()}-${permission.ref.kind}-${permission.ref.name}-tr`;
|
|
370185
370142
|
if (permission.ref.kind === 'FirestartrGithubGroup') {
|
|
370186
|
-
const
|
|
370143
|
+
const teamId = fsGithubRepository.resolveRef(permission.ref, 'id');
|
|
370187
370144
|
const config = {
|
|
370188
370145
|
repository: repo.name,
|
|
370189
|
-
teamId
|
|
370146
|
+
teamId,
|
|
370190
370147
|
permission: permission.role,
|
|
370191
370148
|
};
|
|
370192
370149
|
const teamsRepository = new team_repository/* TeamRepository */.C(scope, tfStateKey, config);
|
|
370193
|
-
fsGithubRepository.addResourceToStack(`${
|
|
370150
|
+
fsGithubRepository.addResourceToStack(`${teamId}:${fsGithubRepository.metadata.name}`, teamsRepository);
|
|
370194
370151
|
}
|
|
370195
370152
|
else if (permission.ref.kind === 'FirestartrGithubMembership') {
|
|
370196
370153
|
const username = fsGithubRepository.resolveRef(permission.ref);
|
|
@@ -370550,7 +370507,7 @@ function provisionGroup(scope, fsGithubGroup) {
|
|
|
370550
370507
|
};
|
|
370551
370508
|
const tfStateKey = `_${fsGithubGroup.getTfStateKey()}`;
|
|
370552
370509
|
const group = new lib_team/* Team */.S(scope, tfStateKey, config);
|
|
370553
|
-
fsGithubGroup.addResourceToStack(fsGithubGroup.metadata.
|
|
370510
|
+
fsGithubGroup.addResourceToStack(fsGithubGroup.metadata.name, group);
|
|
370554
370511
|
return group;
|
|
370555
370512
|
}
|
|
370556
370513
|
|
|
@@ -370567,11 +370524,11 @@ function provisionMembers(scope, team, fsGithubGroup) {
|
|
|
370567
370524
|
const config = {
|
|
370568
370525
|
dependsOn: [team],
|
|
370569
370526
|
username,
|
|
370570
|
-
teamId:
|
|
370527
|
+
teamId: team.id,
|
|
370571
370528
|
role: member.role,
|
|
370572
370529
|
};
|
|
370573
370530
|
const membership = new team_membership/* TeamMembership */.E(scope, tfStateKey, config);
|
|
370574
|
-
fsGithubGroup.addResourceToStack(`${
|
|
370531
|
+
fsGithubGroup.addResourceToStack(`${team.id}:${username}`, membership);
|
|
370575
370532
|
}
|
|
370576
370533
|
}
|
|
370577
370534
|
}
|
|
@@ -372447,10 +372404,7 @@ async function* doApply(item, op, handler) {
|
|
|
372447
372404
|
opts['create'] = true;
|
|
372448
372405
|
}
|
|
372449
372406
|
const deps = await handler.resolveReferences();
|
|
372450
|
-
|
|
372451
|
-
cr: await handler.resolveOwnOutputs(),
|
|
372452
|
-
};
|
|
372453
|
-
operator_src_logger.info(`Item ${item.metadata.name} has the following dependencies: ${Object.keys(deps)}`);
|
|
372407
|
+
operator_src_logger.info(`Item ${item.metadata.name} has the following dependencies: ${deps}`);
|
|
372454
372408
|
const annotation = 'firestartr.dev/last-state-pr';
|
|
372455
372409
|
const statePr = item?.metadata?.annotations?.[annotation];
|
|
372456
372410
|
const hasStatePr = typeof statePr === 'string' && statePr.trim().length > 0;
|
|
@@ -376366,7 +376320,7 @@ const crs_analyzerSubcommand = {
|
|
|
376366
376320
|
};
|
|
376367
376321
|
|
|
376368
376322
|
;// CONCATENATED MODULE: ./package.json
|
|
376369
|
-
const package_namespaceObject = JSON.parse('{"i8":"1.55.1-snapshot-
|
|
376323
|
+
const package_namespaceObject = JSON.parse('{"i8":"1.55.1-snapshot-4"}');
|
|
376370
376324
|
;// CONCATENATED MODULE: ../../package.json
|
|
376371
376325
|
const package_namespaceObject_1 = {"i8":"1.55.0"};
|
|
376372
376326
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -42,7 +42,6 @@ export type WorkItemHandler = {
|
|
|
42
42
|
writeTerraformOutputInTfResult: WriteTerraformOutputInTfResultFn;
|
|
43
43
|
writeConnectionSecret: WriteConnectionSecretFn;
|
|
44
44
|
resolveReferences: ResolveReferencesFn;
|
|
45
|
-
resolveOwnOutputs: Function;
|
|
46
45
|
deleteSecret: DeleteSecretFn;
|
|
47
46
|
itemPath: ItemPathFn;
|
|
48
47
|
error: ErrorFn;
|
|
@@ -2,13 +2,10 @@ import { Construct } from 'constructs';
|
|
|
2
2
|
import { TerraformModule, TerraformResource } from 'cdktf';
|
|
3
3
|
declare class Metadata {
|
|
4
4
|
_metadata: any;
|
|
5
|
-
|
|
6
|
-
constructor(metadata: any, resolveOutputs: Function);
|
|
5
|
+
constructor(metadata: any);
|
|
7
6
|
get name(): any;
|
|
8
|
-
get slug(): any;
|
|
9
7
|
get annotations(): any;
|
|
10
8
|
get labels(): any;
|
|
11
|
-
get id(): any;
|
|
12
9
|
}
|
|
13
10
|
export declare abstract class Entity {
|
|
14
11
|
kind: string;
|