@firestartr/cli 2.11.0-snapshot-mco-01 → 2.11.0-snapshot-mco-02
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
|
@@ -172959,6 +172959,19 @@ function getConfigPath() {
|
|
|
172959
172959
|
}
|
|
172960
172960
|
return configPath;
|
|
172961
172961
|
}
|
|
172962
|
+
/**
|
|
172963
|
+
* claimsDefaults path
|
|
172964
|
+
*/
|
|
172965
|
+
let claimsDefaultsPath = '';
|
|
172966
|
+
function setClaimsDefaultsPath(path) {
|
|
172967
|
+
claimsDefaultsPath = path;
|
|
172968
|
+
}
|
|
172969
|
+
function getClaimsDefaultsPath() {
|
|
172970
|
+
if (!claimsDefaultsPath) {
|
|
172971
|
+
throw new Error('Claims defaults path not set');
|
|
172972
|
+
}
|
|
172973
|
+
return claimsDefaultsPath;
|
|
172974
|
+
}
|
|
172962
172975
|
/* harmony default export */ const config = ({
|
|
172963
172976
|
setClaimsPath,
|
|
172964
172977
|
getClaimsPath,
|
|
@@ -172966,6 +172979,8 @@ function getConfigPath() {
|
|
|
172966
172979
|
getResourcesPath,
|
|
172967
172980
|
setConfigPath,
|
|
172968
172981
|
getConfigPath,
|
|
172982
|
+
setClaimsDefaultsPath,
|
|
172983
|
+
getClaimsDefaultsPath,
|
|
172969
172984
|
});
|
|
172970
172985
|
|
|
172971
172986
|
;// CONCATENATED MODULE: ../importer/src/logger.ts
|
|
@@ -173723,7 +173738,7 @@ class RepoGithubDecanter extends GithubDecanter {
|
|
|
173723
173738
|
let defaultOwnerTeamHandle = null;
|
|
173724
173739
|
let defaultOwnerUserHandle = null;
|
|
173725
173740
|
try {
|
|
173726
|
-
const raw = external_fs_.readFileSync(`${
|
|
173741
|
+
const raw = external_fs_.readFileSync(`${getClaimsDefaultsPath()}/claims_defaults.yaml`, 'utf-8');
|
|
173727
173742
|
const defaults = catalog_common/* default.io.fromYaml */.Z.io.fromYaml(raw);
|
|
173728
173743
|
const ownerRef = defaults?.ComponentClaim?.owner;
|
|
173729
173744
|
if (typeof ownerRef === 'string' && ownerRef.includes(':')) {
|
|
@@ -174448,6 +174463,7 @@ async function reimporter_isDirectory(path) {
|
|
|
174448
174463
|
|
|
174449
174464
|
|
|
174450
174465
|
|
|
174466
|
+
|
|
174451
174467
|
// const MAP_COLLECTION_KIND_CR_KIND: any = {
|
|
174452
174468
|
// gh-members: 'FirestartrGithubMembership',
|
|
174453
174469
|
// gh-group: 'FirestartrGithubGroup',
|
|
@@ -174458,6 +174474,7 @@ async function runImporter(force, skipPlan, claimsPath, crsPath, configPath, cla
|
|
|
174458
174474
|
let generatedFilters = [];
|
|
174459
174475
|
//gh-repo,REGEXP=.*vite.*
|
|
174460
174476
|
cdk8s_renderer.setPath('claimsDefaults', claimsDefaultsPath);
|
|
174477
|
+
setClaimsDefaultsPath(claimsDefaultsPath);
|
|
174461
174478
|
generatedFilters = buildFilters(filters, force, crsPath, generatedFilters);
|
|
174462
174479
|
if (needsReimport) {
|
|
174463
174480
|
await reimportGithubGitopsRepository(org, crsPath, configPath, generatedFilters);
|
|
@@ -713342,7 +713359,7 @@ const crsStatusSubcommand = {
|
|
|
713342
713359
|
};
|
|
713343
713360
|
|
|
713344
713361
|
;// CONCATENATED MODULE: ./package.json
|
|
713345
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.11.0-snapshot-mco-
|
|
713362
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.11.0-snapshot-mco-02"}');
|
|
713346
713363
|
;// CONCATENATED MODULE: ../../package.json
|
|
713347
713364
|
const package_namespaceObject_1 = {"i8":"2.10.0"};
|
|
713348
713365
|
// EXTERNAL MODULE: ../../node_modules/semver/index.js
|
|
@@ -4,6 +4,8 @@ export declare function setResourcesPath(path: string): void;
|
|
|
4
4
|
export declare function getResourcesPath(): string;
|
|
5
5
|
export declare function setConfigPath(path: string): void;
|
|
6
6
|
export declare function getConfigPath(): string;
|
|
7
|
+
export declare function setClaimsDefaultsPath(path: string): void;
|
|
8
|
+
export declare function getClaimsDefaultsPath(): string;
|
|
7
9
|
declare const _default: {
|
|
8
10
|
setClaimsPath: typeof setClaimsPath;
|
|
9
11
|
getClaimsPath: typeof getClaimsPath;
|
|
@@ -11,5 +13,7 @@ declare const _default: {
|
|
|
11
13
|
getResourcesPath: typeof getResourcesPath;
|
|
12
14
|
setConfigPath: typeof setConfigPath;
|
|
13
15
|
getConfigPath: typeof getConfigPath;
|
|
16
|
+
setClaimsDefaultsPath: typeof setClaimsDefaultsPath;
|
|
17
|
+
getClaimsDefaultsPath: typeof getClaimsDefaultsPath;
|
|
14
18
|
};
|
|
15
19
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export default class MemberGithubDecanter extends GithubDecanter {
|
|
|
4
4
|
__decantStart(): void;
|
|
5
5
|
__gatherRoleInOrg(): Promise<void>;
|
|
6
6
|
__decantProviders(): void;
|
|
7
|
-
__adaptInitializerBase(_claim: any): Promise<import("cdk8s_renderer").InitializerDefault>;
|
|
7
|
+
__adaptInitializerBase(_claim: any): Promise<import("../../../../cdk8s_renderer").InitializerDefault>;
|
|
8
8
|
}
|
|
@@ -5,6 +5,6 @@ export default class OrgSettingsGithubDecanter extends GithubDecanter {
|
|
|
5
5
|
__decantProviders(): void;
|
|
6
6
|
__gatherOrgSettings(): Promise<void>;
|
|
7
7
|
__gatherProviderPayload(): void;
|
|
8
|
-
__adaptInitializerBase(_claim: any): Promise<import("cdk8s_renderer").InitializerDefault>;
|
|
8
|
+
__adaptInitializerBase(_claim: any): Promise<import("../../../../cdk8s_renderer").InitializerDefault>;
|
|
9
9
|
private orgSettingsName;
|
|
10
10
|
}
|