@firestartr/cli 1.38.0 → 1.39.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/index.js +6300 -7517
- package/build/packages/catalog_common/index.d.ts +1 -0
- package/build/packages/catalog_common/src/generic/index.d.ts +2 -1
- package/build/packages/catalog_common/src/generic/nomicon.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/charts/github/featureRepoChart.d.ts +1 -0
- package/build/packages/crs_analyzer/index.d.ts +1 -1
- package/build/packages/crs_analyzer/src/analyzers/crs-analyzer.d.ts +13 -0
- package/build/packages/crs_analyzer/src/models/{workspace.d.ts → cr.d.ts} +1 -1
- package/build/packages/crs_analyzer/src/publishers/crs.d.ts +23 -0
- package/package.json +1 -1
- package/build/packages/crs_analyzer/src/analyzers/workspaces.d.ts +0 -13
- package/build/packages/crs_analyzer/src/publishers/workspaces.d.ts +0 -23
|
@@ -38,6 +38,7 @@ declare const _default: {
|
|
|
38
38
|
getFirestartrLabel: typeof import("./src/generic/labels").getFirestartrLabel;
|
|
39
39
|
normalizeLabel: typeof import("./src/generic/labels").normalizeLabel;
|
|
40
40
|
removeRepeatedObjectsFromArrayByProp: typeof import("./src/generic/arrays").removeRepeatedObjectsFromArrayByProp;
|
|
41
|
+
toMd5: typeof import("./src/generic/nomicon").toMd5;
|
|
41
42
|
};
|
|
42
43
|
types: {
|
|
43
44
|
ArtifactStatuses: typeof import("./src/types/catalog").ArtifactStatuses;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { randomString, shuffleArray, shuffleObject } from './random';
|
|
2
|
-
import { annotateWithUUID, calculateStoregeKey } from './nomicon';
|
|
2
|
+
import { annotateWithUUID, calculateStoregeKey, toMd5 } from './nomicon';
|
|
3
3
|
import CsvWriter from './csv_generator';
|
|
4
4
|
import { getLogger } from './logger';
|
|
5
5
|
import { sleep } from './time';
|
|
@@ -24,5 +24,6 @@ declare const _default: {
|
|
|
24
24
|
getFirestartrLabel: typeof getFirestartrLabel;
|
|
25
25
|
normalizeLabel: typeof normalizeLabel;
|
|
26
26
|
removeRepeatedObjectsFromArrayByProp: typeof removeRepeatedObjectsFromArrayByProp;
|
|
27
|
+
toMd5: typeof toMd5;
|
|
27
28
|
};
|
|
28
29
|
export default _default;
|
|
@@ -4,3 +4,4 @@ export interface Artifact {
|
|
|
4
4
|
export declare function annotateWithUUID(artifact: Artifact): Artifact;
|
|
5
5
|
export declare function helperlGetArtifactUUID(artifact: Artifact): string;
|
|
6
6
|
export declare function calculateStoregeKey(artifact: Artifact, storageType: string): string;
|
|
7
|
+
export declare function toMd5(text: string): string;
|
|
@@ -5,6 +5,7 @@ export declare class FeatureRepoChart extends BaseGithubChart {
|
|
|
5
5
|
constructor(scope: any, chartId: string, firestartrId: string | null, claim: any, patches?: any[], cr?: any);
|
|
6
6
|
template(): FirestartrGithubRepositoryFeatureProps;
|
|
7
7
|
gvk(): GroupVersionKind;
|
|
8
|
+
private getAnnotationsFromRepo;
|
|
8
9
|
private resolveRepositoryTarget;
|
|
9
10
|
instanceApiObject(template: any): FirestartrGithubRepositoryFeature;
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function runCrsAnalyzer(
|
|
1
|
+
declare function runCrsAnalyzer(plural: string, namespace: string, org: string, repo: string): Promise<void>;
|
|
2
2
|
declare const _default: {
|
|
3
3
|
runCrsAnalyzer: typeof runCrsAnalyzer;
|
|
4
4
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Context } from '../context';
|
|
2
|
+
import { Analyzer } from './base';
|
|
3
|
+
import { Cr } from '../models/cr';
|
|
4
|
+
import { KubernetesClient } from '../kubernetes-client';
|
|
5
|
+
export declare class CrsAnalyzer extends Analyzer {
|
|
6
|
+
drifted: Cr[];
|
|
7
|
+
failed: Cr[];
|
|
8
|
+
constructor(context: Context, cli: KubernetesClient);
|
|
9
|
+
analyze(): Promise<void>;
|
|
10
|
+
listCrs(): Promise<Cr[]>;
|
|
11
|
+
filterByFailed(workspaces: Cr[]): Cr[];
|
|
12
|
+
filterByDrifted(workspaces: Cr[]): Cr[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CrsAnalyzer } from '../analyzers/crs-analyzer';
|
|
2
|
+
import { Context } from '../context';
|
|
3
|
+
import { GithubClient } from '../github-client';
|
|
4
|
+
import { Cr } from '../models/cr';
|
|
5
|
+
import { Publisher } from './base';
|
|
6
|
+
export declare class CrsPublisher extends Publisher {
|
|
7
|
+
githubCli: GithubClient;
|
|
8
|
+
analyzer: CrsAnalyzer;
|
|
9
|
+
context: Context;
|
|
10
|
+
output: string;
|
|
11
|
+
constructor(analyzer: CrsAnalyzer, githubCli: GithubClient, context: Context);
|
|
12
|
+
publish(): Promise<void>;
|
|
13
|
+
closeOldErrorIssues(errorIssues: any): Promise<void>;
|
|
14
|
+
closeOldDriftIssues(driftIssues: any): Promise<void>;
|
|
15
|
+
publishError(cr: Cr): Promise<any>;
|
|
16
|
+
publishDrift(cr: Cr): Promise<any>;
|
|
17
|
+
buildErrorsBody(cr: Cr): string;
|
|
18
|
+
buildErrorForWs(ws: Cr): string;
|
|
19
|
+
buildDriftBody(wp: Cr): string;
|
|
20
|
+
buildDriftForWs(ws: Cr): string;
|
|
21
|
+
writeLnOutput(line: string): void;
|
|
22
|
+
filterIssuesBy(type: 'error' | 'drift'): Promise<any>;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Context } from '../context';
|
|
2
|
-
import { Analyzer } from './base';
|
|
3
|
-
import { Workspace } from '../models/workspace';
|
|
4
|
-
import { KubernetesClient } from '../kubernetes-client';
|
|
5
|
-
export declare class WorkspacesAnalyzer extends Analyzer {
|
|
6
|
-
drifted: Workspace[];
|
|
7
|
-
failed: Workspace[];
|
|
8
|
-
constructor(context: Context, cli: KubernetesClient);
|
|
9
|
-
analyze(): Promise<void>;
|
|
10
|
-
listWorkspaces(): Promise<Workspace[]>;
|
|
11
|
-
filterByFailed(workspaces: Workspace[]): Workspace[];
|
|
12
|
-
filterByDrifted(workspaces: Workspace[]): Workspace[];
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { WorkspacesAnalyzer } from '../analyzers/workspaces';
|
|
2
|
-
import { Context } from '../context';
|
|
3
|
-
import { GithubClient } from '../github-client';
|
|
4
|
-
import { Workspace } from '../models/workspace';
|
|
5
|
-
import { Publisher } from './base';
|
|
6
|
-
export declare class WorkspacesPublisher extends Publisher {
|
|
7
|
-
githubCli: GithubClient;
|
|
8
|
-
analyzer: WorkspacesAnalyzer;
|
|
9
|
-
context: Context;
|
|
10
|
-
output: string;
|
|
11
|
-
constructor(analyzer: WorkspacesAnalyzer, githubCli: GithubClient, context: Context);
|
|
12
|
-
publish(): Promise<void>;
|
|
13
|
-
closeOldErrorIssues(errorIssues: any): Promise<void>;
|
|
14
|
-
closeOldDriftIssues(driftIssues: any): Promise<void>;
|
|
15
|
-
publishError(wp: Workspace): Promise<any>;
|
|
16
|
-
publishDrift(wp: Workspace): Promise<any>;
|
|
17
|
-
buildErrorsBody(wp: Workspace): string;
|
|
18
|
-
buildErrorForWs(ws: Workspace): string;
|
|
19
|
-
buildDriftBody(wp: Workspace): string;
|
|
20
|
-
buildDriftForWs(ws: Workspace): string;
|
|
21
|
-
writeLnOutput(line: string): void;
|
|
22
|
-
filterIssuesBy(type: 'error' | 'drift'): Promise<any>;
|
|
23
|
-
}
|