@firestartr/cli 1.56.1-snapshot-2 → 1.56.1-snapshot-3
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
|
@@ -370020,7 +370020,6 @@ var lib_provider = __nccwpck_require__(85791);
|
|
|
370020
370020
|
;// CONCATENATED MODULE: ../provisioner/src/entities/base/Entity.ts
|
|
370021
370021
|
|
|
370022
370022
|
const EXTERNAL_NAME_ANNOTATION = 'firestartr.dev/external-name';
|
|
370023
|
-
const IMPORT_SLUG_ANNOTATION = 'firestartr.dev/github-slug';
|
|
370024
370023
|
const IMPORT_ID_ANNOTATION = 'firestartr.dev/github-id';
|
|
370025
370024
|
|
|
370026
370025
|
class Metadata {
|
|
@@ -370037,13 +370036,10 @@ class Metadata {
|
|
|
370037
370036
|
}
|
|
370038
370037
|
}
|
|
370039
370038
|
get slug() {
|
|
370040
|
-
//
|
|
370039
|
+
// we search the slug in the outputs
|
|
370041
370040
|
const slug = this._resolveOutputs('slug');
|
|
370042
|
-
if (
|
|
370043
|
-
|
|
370044
|
-
}
|
|
370045
|
-
else if (slug) {
|
|
370046
|
-
// hay outputs?
|
|
370041
|
+
if (slug) {
|
|
370042
|
+
// is the slug in the outputs?
|
|
370047
370043
|
return slug;
|
|
370048
370044
|
}
|
|
370049
370045
|
else {
|
|
@@ -370057,13 +370053,16 @@ class Metadata {
|
|
|
370057
370053
|
return this._metadata.labels || {};
|
|
370058
370054
|
}
|
|
370059
370055
|
get id() {
|
|
370060
|
-
//
|
|
370056
|
+
// we search the id in the outputs
|
|
370061
370057
|
const id = this._resolveOutputs('id');
|
|
370058
|
+
// if we are in an import process
|
|
370059
|
+
// there should be an id annotation
|
|
370060
|
+
// it takes always precedence
|
|
370062
370061
|
if (IMPORT_ID_ANNOTATION in this.annotations) {
|
|
370063
370062
|
return this.annotations[IMPORT_ID_ANNOTATION];
|
|
370064
370063
|
}
|
|
370065
370064
|
else if (id) {
|
|
370066
|
-
//
|
|
370065
|
+
// is the ID in the outputs?
|
|
370067
370066
|
return id;
|
|
370068
370067
|
}
|
|
370069
370068
|
else {
|
|
@@ -370615,16 +370614,17 @@ function provisionMembers(scope, team, fsGithubGroup) {
|
|
|
370615
370614
|
for (const member of fsGithubGroup.spec.members) {
|
|
370616
370615
|
provisioner_src_logger.info(`Provisioning user ${member.ref.name} for group ${fsGithubGroup.metadata.name}`);
|
|
370617
370616
|
const tfStateKey = `_${fsGithubGroup.getTfStateKey()}-${member.ref.kind}-${member.ref.name}-tr`;
|
|
370617
|
+
const teamId = team.id || fsGithubGroup.metadata.id;
|
|
370618
370618
|
if (member.ref.kind === 'FirestartrGithubMembership') {
|
|
370619
370619
|
const username = fsGithubGroup.resolveRef(member.ref);
|
|
370620
370620
|
const config = {
|
|
370621
370621
|
dependsOn: [team],
|
|
370622
370622
|
username,
|
|
370623
|
-
teamId:
|
|
370623
|
+
teamId: teamId,
|
|
370624
370624
|
role: member.role,
|
|
370625
370625
|
};
|
|
370626
370626
|
const membership = new team_membership/* TeamMembership */.E(scope, tfStateKey, config);
|
|
370627
|
-
fsGithubGroup.addResourceToStack(`${
|
|
370627
|
+
fsGithubGroup.addResourceToStack(`${teamId}:${username}`, membership);
|
|
370628
370628
|
}
|
|
370629
370629
|
}
|
|
370630
370630
|
}
|
|
@@ -376424,7 +376424,7 @@ const crs_analyzerSubcommand = {
|
|
|
376424
376424
|
};
|
|
376425
376425
|
|
|
376426
376426
|
;// CONCATENATED MODULE: ./package.json
|
|
376427
|
-
const package_namespaceObject = JSON.parse('{"i8":"
|
|
376427
|
+
const package_namespaceObject = JSON.parse('{"i8":" v1.56.1-snapshot-3"}');
|
|
376428
376428
|
;// CONCATENATED MODULE: ../../package.json
|
|
376429
376429
|
const package_namespaceObject_1 = {"i8":"1.56.0"};
|
|
376430
376430
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -42,7 +42,7 @@ export type WorkItemHandler = {
|
|
|
42
42
|
writeTerraformOutputInTfResult: WriteTerraformOutputInTfResultFn;
|
|
43
43
|
writeConnectionSecret: WriteConnectionSecretFn;
|
|
44
44
|
resolveReferences: ResolveReferencesFn;
|
|
45
|
-
resolveOwnOutputs:
|
|
45
|
+
resolveOwnOutputs: () => Promise<any | undefined>;
|
|
46
46
|
deleteSecret: DeleteSecretFn;
|
|
47
47
|
itemPath: ItemPathFn;
|
|
48
48
|
error: ErrorFn;
|