@firestartr/cli 1.47.0-snapshot-1 → 1.48.0-snapshot-0
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/351.index.js +36 -0
- package/build/540.index.js +80 -0
- package/build/594.index.js +46 -0
- package/build/647.index.js +80 -0
- package/build/857.index.js +79 -0
- package/build/index.js +103085 -81108
- package/build/packages/cdk8s_renderer/index.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/config.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/loader/loader.d.ts +0 -8
- package/build/packages/cdk8s_renderer/src/utils/claimUtils.d.ts +1 -1
- package/build/packages/features_renderer/index.d.ts +7 -0
- package/build/packages/features_renderer/src/auxiliar.d.ts +72 -0
- package/build/packages/github/src/auth.d.ts +2 -2
- package/build/packages/operator/src/logger.d.ts +9 -0
- package/build/packages/operator/src/metrics/CRStates.d.ts +20 -0
- package/build/packages/operator/src/metricsServer.d.ts +1 -1
- package/build/packages/scaffolder/src/scaffolder.d.ts +1 -1
- package/package.json +1 -1
|
@@ -37,4 +37,4 @@ declare const _default: {
|
|
|
37
37
|
addLastStateAndLastClaimAnnotations: typeof addLastStateAndLastClaimAnnotations;
|
|
38
38
|
};
|
|
39
39
|
export default _default;
|
|
40
|
-
export declare function runRenderer(globalsPath: string, initializersPath: string, claimsPath: string, crsPath: string, claimsDefaults: string, outputCatalogDir: string, outputCrDir: string, renamesEnabled: boolean, provider: AllowedProviders, excludedPaths: string[], validateReferentialIntegrity: string, claimRefs?: string, claimFilesList?: string
|
|
40
|
+
export declare function runRenderer(globalsPath: string, initializersPath: string, claimsPath: string, crsPath: string, claimsDefaults: string, outputCatalogDir: string, outputCrDir: string, renamesEnabled: boolean, provider: AllowedProviders, excludedPaths: string[], validateReferentialIntegrity: string, claimRefs?: string, claimFilesList?: string): Promise<void>;
|
|
@@ -15,5 +15,6 @@ export declare enum AllowedProviders {
|
|
|
15
15
|
externalSecrets = "externalSecrets"
|
|
16
16
|
}
|
|
17
17
|
export declare function configureProvider(provider: AllowedProviders): void;
|
|
18
|
+
export declare function reconfigureProvider(provider: AllowedProviders): void;
|
|
18
19
|
export declare function getSelectedKindClaimCrMap(provider?: string): any;
|
|
19
20
|
export declare function getConfiguredProvider(): AllowedProviders;
|
|
@@ -4,8 +4,6 @@ import { OverriderPatches } from '../overriders/base';
|
|
|
4
4
|
import { Normalizer } from '../normalizers/base';
|
|
5
5
|
import { RenderClaims } from '../renderer/types';
|
|
6
6
|
export declare const isYamlFile: RegExp;
|
|
7
|
-
export declare function loadSystems(): Promise<any[]>;
|
|
8
|
-
export declare function loadDomains(): Promise<any[]>;
|
|
9
7
|
export declare function loadGlobals(claim: any): Promise<GlobalSection[]>;
|
|
10
8
|
export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
11
9
|
/**
|
|
@@ -15,7 +13,6 @@ export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
|
15
13
|
*/
|
|
16
14
|
export declare function loadNormalizers(_claim: any, path?: string): Promise<Normalizer[]>;
|
|
17
15
|
export declare function loadInitializers(claim: any, initializersPath?: string): Promise<InitializerPatches[]>;
|
|
18
|
-
export declare function loadClaims(claimsPath?: string): Promise<RenderClaims>;
|
|
19
16
|
export declare function loadClaimDefaults(): any;
|
|
20
17
|
export declare function patchClaim(claim: any, defaultsClaims: any): any;
|
|
21
18
|
export declare function loadCRs(crsPath?: string, excludedPaths?: string[], allowedClaimReferences?: string[]): Promise<any>;
|
|
@@ -34,11 +31,6 @@ export interface RenderData {
|
|
|
34
31
|
renames?: any;
|
|
35
32
|
crs?: any;
|
|
36
33
|
}
|
|
37
|
-
export declare function loadAll(): Promise<{
|
|
38
|
-
renderClaims: RenderClaims;
|
|
39
|
-
crs: any;
|
|
40
|
-
renames?: IRenameResult[];
|
|
41
|
-
}>;
|
|
42
34
|
export declare function loadClaimsList(claimRefList: AsyncGenerator<string, void, unknown>, claimsPath?: string): Promise<{
|
|
43
35
|
renderClaims: RenderClaims;
|
|
44
36
|
crs: any;
|
|
@@ -3,4 +3,4 @@ export declare function claimsRefListAsGenerator(refs: string[]): AsyncGenerator
|
|
|
3
3
|
export declare function resolveClaimFilesList(claimRefsList: string): string[];
|
|
4
4
|
export declare function resolveClaimEntries(claimRefsList: string[]): AsyncGenerator<string, void, unknown>;
|
|
5
5
|
export declare function resolveClaimFileRef(claimFile: string): Promise<string>;
|
|
6
|
-
export declare function getClaimsEntryAbsolutePath(claimsDir: string, entryPath: string
|
|
6
|
+
export declare function getClaimsEntryAbsolutePath(claimsDir: string, entryPath: string): string;
|
|
@@ -5,5 +5,12 @@ declare const _default: {
|
|
|
5
5
|
validate: typeof validate;
|
|
6
6
|
render: typeof render;
|
|
7
7
|
updateFileContent: typeof updateFileContent;
|
|
8
|
+
auxiliar: {
|
|
9
|
+
mkNamedTmp: (name: string) => Promise<string>;
|
|
10
|
+
loadYaml: <T = unknown>(file: string) => T;
|
|
11
|
+
buildExpectedOutput: (config: import("./src/auxiliar").FeatureConfig, renderDir: string) => import("./src/auxiliar").ExpectedOutput;
|
|
12
|
+
loadAndValidateRenderTests: (featurePath: string) => import("./src/auxiliar").RenderTestsFile;
|
|
13
|
+
resolveCrPath: (featurePath: string, crRelPath: string) => string;
|
|
14
|
+
};
|
|
8
15
|
};
|
|
9
16
|
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
4
|
+
export interface ConfigFile {
|
|
5
|
+
dest: string;
|
|
6
|
+
src: string;
|
|
7
|
+
user_managed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FeatureConfig {
|
|
10
|
+
files?: ConfigFile[];
|
|
11
|
+
patches?: unknown[];
|
|
12
|
+
}
|
|
13
|
+
export interface ExpectedFile {
|
|
14
|
+
localPath: string;
|
|
15
|
+
repoPath: string;
|
|
16
|
+
userManaged: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ExpectedOutput {
|
|
19
|
+
files: ExpectedFile[];
|
|
20
|
+
patches: unknown[];
|
|
21
|
+
}
|
|
22
|
+
export interface RenderTest {
|
|
23
|
+
name: string;
|
|
24
|
+
cr: string;
|
|
25
|
+
args?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface RenderTestsFile {
|
|
28
|
+
tests: RenderTest[];
|
|
29
|
+
}
|
|
30
|
+
export interface RenderContext {
|
|
31
|
+
/** Absolute path to the temp dir */
|
|
32
|
+
getContextPath: () => string;
|
|
33
|
+
/** Join a relative path inside the temp dir */
|
|
34
|
+
join: (...p: string[]) => string;
|
|
35
|
+
/** Read a file (raw / JSON / YAML) from the temp dir */
|
|
36
|
+
getFile: <T = unknown>(relPath: string, opts?: {
|
|
37
|
+
yaml?: boolean;
|
|
38
|
+
json?: boolean;
|
|
39
|
+
}) => Promise<T | string>;
|
|
40
|
+
/** Absolute path of a file in the temp dir (no existence check) */
|
|
41
|
+
getFilePath: (relPath: string) => string;
|
|
42
|
+
/** Write a file (ensures parent dirs) */
|
|
43
|
+
setFile: (relPath: string, contents: string | Buffer | NodeJS.ArrayBufferView) => Promise<void>;
|
|
44
|
+
/** Whether a path exists in the temp dir */
|
|
45
|
+
exists: (relPath: string) => Promise<boolean>;
|
|
46
|
+
/** Convenience: read output.json from the temp dir */
|
|
47
|
+
getOutputJson: <T = unknown>() => Promise<T>;
|
|
48
|
+
/** List entries (name + isDir) in a subdirectory */
|
|
49
|
+
list: (relPath?: string) => Promise<Array<{
|
|
50
|
+
name: string;
|
|
51
|
+
isDir: boolean;
|
|
52
|
+
}>>;
|
|
53
|
+
/** Optional cleanup */
|
|
54
|
+
remove: () => Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
|
|
57
|
+
declare function resolveCrPath(featurePath: string, crRelPath: string): string;
|
|
58
|
+
export declare function listYamlFiles(dir: string): string[];
|
|
59
|
+
declare function loadYaml<T = unknown>(file: string): T;
|
|
60
|
+
export declare function ensureSafeTmpName(name: string): void;
|
|
61
|
+
declare function mkNamedTmp(name: string): Promise<string>;
|
|
62
|
+
export declare function mkTmp(prefix?: string): Promise<string>;
|
|
63
|
+
declare function buildExpectedOutput(config: FeatureConfig, renderDir: string): ExpectedOutput;
|
|
64
|
+
export declare function createRenderContext(prefix?: string): Promise<RenderContext>;
|
|
65
|
+
declare const _default: {
|
|
66
|
+
mkNamedTmp: typeof mkNamedTmp;
|
|
67
|
+
loadYaml: typeof loadYaml;
|
|
68
|
+
buildExpectedOutput: typeof buildExpectedOutput;
|
|
69
|
+
loadAndValidateRenderTests: typeof loadAndValidateRenderTests;
|
|
70
|
+
resolveCrPath: typeof resolveCrPath;
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Octokit } from '@octokit/rest';
|
|
2
2
|
export declare const generateGithubAppToken: (config: any) => Promise<string>;
|
|
3
|
-
export declare function getGithubAppToken(org
|
|
4
|
-
export declare function getOctokitForOrg(org
|
|
3
|
+
export declare function getGithubAppToken(org: string, genGithubAppToken?: any): Promise<string>;
|
|
4
|
+
export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<Octokit>;
|
|
5
5
|
export declare function getOctokitFromPat(envVar: string): Promise<Octokit>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
getOctokitForOrg: typeof getOctokitForOrg;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meter } from '@opentelemetry/api';
|
|
2
|
+
export default class CRStateMetrics {
|
|
3
|
+
kind: string;
|
|
4
|
+
updateInterval: any;
|
|
5
|
+
provisionedGauge: any;
|
|
6
|
+
provisioningGauge: any;
|
|
7
|
+
outOfSyncGauge: any;
|
|
8
|
+
planningGauge: any;
|
|
9
|
+
deletedGauge: any;
|
|
10
|
+
errorGauge: any;
|
|
11
|
+
onUpdate: boolean;
|
|
12
|
+
namespace: string;
|
|
13
|
+
kc: any;
|
|
14
|
+
fListCRs: Function;
|
|
15
|
+
constructor(kind: string, namespace: string, meter: Meter);
|
|
16
|
+
start(): Promise<void>;
|
|
17
|
+
stop(): void;
|
|
18
|
+
update(): Promise<void>;
|
|
19
|
+
__prepareConnection(): Promise<void>;
|
|
20
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function (): Promise<void>;
|
|
1
|
+
export default function (kindList: string[], namespace: string): Promise<void>;
|