@firestartr/cli 2.6.0-snapshot → 2.6.0-snapshot-1
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/README.md +0 -2
- package/build/index.js +37271 -44315
- package/build/packages/catalog_common/index.d.ts +9 -1
- package/build/packages/catalog_common/src/codeowners/index.d.ts +26 -0
- package/build/packages/catalog_common/src/types/envvars.d.ts +0 -4
- package/build/packages/cdk8s_renderer/src/charts/catalog/tfWorkspaceChart.d.ts +2 -2
- package/build/packages/cdk8s_renderer/src/normalizers/refValues.d.ts +6 -10
- package/build/packages/cdk8s_renderer/src/normalizers/tfworkspace.d.ts +1 -4
- package/build/packages/cdk8s_renderer/src/refsSorter/refsExtractor.d.ts +3 -6
- package/build/packages/gh_provisioner/src/entities/ghrepo/helpers/branch_protections.d.ts +7 -0
- package/build/packages/gh_provisioner/src/entities/ghrepo/helpers/index.d.ts +1 -0
- package/build/packages/gh_provisioner/src/entities/ghrepo/index.d.ts +1 -0
- package/build/packages/github/index.d.ts +11 -7
- package/build/packages/github/src/auth.d.ts +3 -0
- package/build/packages/github/src/auth_installation.d.ts +1 -0
- package/build/packages/github/src/branches.d.ts +4 -984
- package/build/packages/github/src/config_resolver.d.ts +8 -0
- package/build/packages/github/src/encrypt.d.ts +3 -6
- package/build/packages/github/src/issues.d.ts +5 -5
- package/build/packages/github/src/organization.d.ts +9 -9
- package/build/packages/github/src/profile.d.ts +20 -0
- package/build/packages/github/src/repository.d.ts +2 -2
- package/build/packages/github/src/team.d.ts +6 -129
- package/build/packages/github/src/user.d.ts +1 -1
- package/build/packages/github/src/with_profile.d.ts +888 -0
- package/build/packages/github/src/workflow.d.ts +4 -4
- package/build/packages/importer/src/decanter/gh/github_repo.d.ts +2 -0
- package/build/packages/operator/src/definitions.d.ts +15 -1
- package/build/packages/operator/src/operator-env.d.ts +1 -0
- package/build/packages/operator/src/processItem.blocks.d.ts +40 -0
- package/build/packages/operator/src/processItem.d.ts +2 -1
- package/build/packages/operator/src/processItem.slot.d.ts +5 -2
- package/build/packages/operator/src/tfm_mirrors.d.ts +5 -0
- package/build/packages/terraform_provisioner/index.d.ts +21 -1
- package/build/packages/terraform_provisioner/src/index.d.ts +2 -0
- package/build/packages/terraform_provisioner/src/mirror-repos/index.d.ts +41 -0
- package/build/packages/terraform_provisioner/src/mirror-repos.d.ts +13 -0
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +0 -1
- package/build/packages/terraform_provisioner/src/utils.d.ts +19 -1
- package/package.json +1 -1
- package/build/202.index.js +0 -46
- package/build/697.index.js +0 -80
- package/build/87.index.js +0 -80
- package/build/902.index.js +0 -36
- package/build/915.index.js +0 -79
- package/build/packages/cdk8s_renderer/src/utils/tfwp-refs.d.ts +0 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { SimpleTokenizer } from './src/tokenizer';
|
|
2
1
|
import { validateCron, isValidCron, getCronNextInterval } from './src/cron';
|
|
3
2
|
export type { IBackstageProfile } from './src/types/backstage';
|
|
4
3
|
export type { BranchStrategy } from './src/types/github';
|
|
@@ -105,6 +104,15 @@ declare const _default: {
|
|
|
105
104
|
tokenizer: {
|
|
106
105
|
SimpleTokenizer: typeof import("./src/tokenizer").SimpleTokenizer;
|
|
107
106
|
};
|
|
107
|
+
codeowners: {
|
|
108
|
+
parse: typeof import("./src/codeowners").parse;
|
|
109
|
+
format: typeof import("./src/codeowners").format;
|
|
110
|
+
validate: typeof import("./src/codeowners").validate;
|
|
111
|
+
updateRule: typeof import("./src/codeowners").updateRule;
|
|
112
|
+
remove: typeof import("./src/codeowners").remove;
|
|
113
|
+
getOwners: typeof import("./src/codeowners").getOwners;
|
|
114
|
+
resolveRefs: typeof import("./src/codeowners").resolveRefs;
|
|
115
|
+
};
|
|
108
116
|
cron: {
|
|
109
117
|
validateCron: typeof validateCron;
|
|
110
118
|
isValidCron: typeof isValidCron;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface CodeownersEntry {
|
|
2
|
+
type: 'rule' | 'comment' | 'blank';
|
|
3
|
+
pattern?: string;
|
|
4
|
+
owners?: string[];
|
|
5
|
+
raw: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parse(raw: string): CodeownersEntry[];
|
|
8
|
+
export declare function format(entries: CodeownersEntry[]): string;
|
|
9
|
+
export declare function validate(raw: string): {
|
|
10
|
+
valid: boolean;
|
|
11
|
+
errors: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare function updateRule(entries: CodeownersEntry[], pattern: string, owners: string[]): CodeownersEntry[];
|
|
14
|
+
export declare function remove(entries: CodeownersEntry[], pattern: string): CodeownersEntry[];
|
|
15
|
+
export declare function getOwners(entries: CodeownersEntry[]): string[];
|
|
16
|
+
export declare function resolveRefs(raw: string, replacements: Record<string, string>): string;
|
|
17
|
+
declare const _default: {
|
|
18
|
+
parse: typeof parse;
|
|
19
|
+
format: typeof format;
|
|
20
|
+
validate: typeof validate;
|
|
21
|
+
updateRule: typeof updateRule;
|
|
22
|
+
remove: typeof remove;
|
|
23
|
+
getOwners: typeof getOwners;
|
|
24
|
+
resolveRefs: typeof resolveRefs;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
@@ -25,11 +25,7 @@ export declare enum envVars {
|
|
|
25
25
|
s3Bucket = "S3_BUCKET",
|
|
26
26
|
s3Lock = "S3_LOCK",
|
|
27
27
|
s3Region = "S3_REGION",
|
|
28
|
-
cdktfConfigFiles = "CDKTF_CONFIG_FILES",
|
|
29
28
|
exclusionsYamlPath = "EXCLUSIONS_PATH",
|
|
30
|
-
cdktfEntityPath = "FIRESTARTR_CDKTF_ENTITY_PATH",
|
|
31
|
-
cdktfDepsPath = "FIRESTARTR_CDKTF_DEPS_PATH",
|
|
32
|
-
cdktfIsImport = "FIRESTARTR_CDKTF_IS_IMPORT",
|
|
33
29
|
githubAppId = "GITHUB_APP_ID",
|
|
34
30
|
githubAppInstallationId = "GITHUB_APP_INSTALLATION_ID",
|
|
35
31
|
githubAppInstallationIdPrefapp = "GITHUB_APP_INSTALLATION_ID_PREFAPP",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCatalogChart } from './base';
|
|
2
2
|
import { ApiObject, GroupVersionKind } from 'cdk8s';
|
|
3
3
|
export declare class CatalogTFWorkspaceChart extends BaseCatalogChart {
|
|
4
|
-
template():
|
|
4
|
+
template(): {
|
|
5
5
|
apiVersion: string;
|
|
6
6
|
kind: string;
|
|
7
7
|
metadata: {
|
|
@@ -32,7 +32,7 @@ export declare class CatalogTFWorkspaceChart extends BaseCatalogChart {
|
|
|
32
32
|
};
|
|
33
33
|
dependsOn: string[];
|
|
34
34
|
};
|
|
35
|
-
}
|
|
35
|
+
};
|
|
36
36
|
instanceApiObject(template: any): ApiObject;
|
|
37
37
|
gvk(): GroupVersionKind;
|
|
38
38
|
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { ICustomResourcePatch } from '../patches';
|
|
2
2
|
import { Normalizer } from './base';
|
|
3
3
|
export declare class RefValuesNormalizer extends Normalizer {
|
|
4
|
+
applicableProviders: string[];
|
|
5
|
+
__validate(_schema: any): Promise<boolean>;
|
|
4
6
|
rsClaimRef: Function;
|
|
5
|
-
|
|
6
|
-
normalize(values: any): Promise<{
|
|
7
|
-
values: any;
|
|
8
|
-
references: any[];
|
|
9
|
-
}>;
|
|
10
|
-
__patches(claim: any, previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
11
|
-
__validate(): Promise<any>;
|
|
12
|
-
static applicableProviders: string[];
|
|
13
|
-
get applicableProviders(): string[];
|
|
7
|
+
__patches(claim: any, _previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
14
8
|
}
|
|
15
9
|
export declare function replaceReferences(providerValues: any, resolveRef: Function, references?: Map<string, any>): Promise<{
|
|
16
|
-
values:
|
|
10
|
+
values: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
17
13
|
references: any[];
|
|
18
14
|
}>;
|
|
@@ -6,8 +6,5 @@ export declare class TFWorkspaceNormalizer extends Normalizer {
|
|
|
6
6
|
__validate(_schema: any): Promise<boolean>;
|
|
7
7
|
__patches(claim: any, _previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
8
8
|
}
|
|
9
|
-
export declare function normalizeModuleContent(tfRootModulePath: string
|
|
10
|
-
content: string;
|
|
11
|
-
references: any[];
|
|
12
|
-
}>;
|
|
9
|
+
export declare function normalizeModuleContent(tfRootModulePath: string): Promise<string>;
|
|
13
10
|
export declare function validatek8sLimits(moduleContent: any): boolean;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { RenderClaims } from '../renderer/types';
|
|
2
|
-
export declare function extractRefs(renderClaims: RenderClaims, kind: string):
|
|
3
|
-
export declare function extractAllRefs(claimData: string):
|
|
2
|
+
export declare function extractRefs(renderClaims: RenderClaims, kind: string): any;
|
|
3
|
+
export declare function extractAllRefs(claimData: string): any[];
|
|
4
4
|
export declare function getGroupParentRef(parent: string, references?: any[]): any[];
|
|
5
|
-
export declare function
|
|
6
|
-
tfworkspaceRefs: string[];
|
|
7
|
-
secretsClaimRefs: string[];
|
|
8
|
-
}>;
|
|
5
|
+
export declare function getTfWorkspacesRefs(values: any, references?: any[], secretsRefs?: any[]): any[][];
|
|
9
6
|
export declare function getComponentVarsAndSecretsRefs(parsedClaim: any): string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityGHRepo } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Adds branch protection config to the synthesized Terraform config,
|
|
4
|
+
* preserving legacy field semantics exactly (empty lists, explicit booleans, names).
|
|
5
|
+
* @param entity The EntityGHRepo instance
|
|
6
|
+
*/
|
|
7
|
+
export declare function provisionBranchProtections(entity: EntityGHRepo): void;
|
|
@@ -4,3 +4,4 @@ export { provisionVariables } from './variables';
|
|
|
4
4
|
export { provisionOIDCSubjectClaim } from './actions_oidc';
|
|
5
5
|
export { provisionPermissions } from './teams';
|
|
6
6
|
export { provisionLabels } from './labels';
|
|
7
|
+
export { provisionBranchProtections } from './branch_protections';
|
|
@@ -4,6 +4,8 @@ import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/au
|
|
|
4
4
|
import { encryptRepoSecret, getRepoPublicKey } from './src/encrypt';
|
|
5
5
|
import type { RepoSecretsSection } from './src/encrypt';
|
|
6
6
|
import type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary } from './src/workflow';
|
|
7
|
+
import { withProfile } from './src/with_profile';
|
|
8
|
+
import { createProfile } from './src/profile';
|
|
7
9
|
declare const _default: {
|
|
8
10
|
org: {
|
|
9
11
|
getRepositoryList: typeof import("./src/organization").getRepositoryList;
|
|
@@ -32,8 +34,8 @@ declare const _default: {
|
|
|
32
34
|
getOIDCRepo: typeof import("./src/repository").getOIDCRepo;
|
|
33
35
|
addStatusCheck: typeof import("./src/repository").addStatusCheck;
|
|
34
36
|
addCommitStatus: typeof import("./src/repository").addCommitStatus;
|
|
35
|
-
tryCreateRef: typeof import("./src/repository").tryCreateRef;
|
|
36
37
|
getRepoIssuesLabels: typeof import("./src/repository").getRepoIssuesLabels;
|
|
38
|
+
isEmptyRepo: typeof import("./src/repository").isEmptyRepo;
|
|
37
39
|
};
|
|
38
40
|
team: {
|
|
39
41
|
getTeamMembers: typeof import("./src/team").getTeamMembers;
|
|
@@ -71,11 +73,11 @@ declare const _default: {
|
|
|
71
73
|
}) => Promise<any>;
|
|
72
74
|
};
|
|
73
75
|
issues: {
|
|
74
|
-
create: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
75
|
-
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
76
|
-
close: (owner: string, repo: string, issue_number: number) => Promise<any>;
|
|
77
|
-
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string) => Promise<any>;
|
|
78
|
-
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
76
|
+
create: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
77
|
+
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
78
|
+
close: (owner: string, repo: string, issue_number: number, octokit?: any) => Promise<any>;
|
|
79
|
+
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
|
|
80
|
+
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
79
81
|
};
|
|
80
82
|
branches: {
|
|
81
83
|
listBranches: typeof import("./src/branches").listBranches;
|
|
@@ -98,7 +100,9 @@ declare const _default: {
|
|
|
98
100
|
encryptRepoSecret: typeof encryptRepoSecret;
|
|
99
101
|
getRepoPublicKey: typeof getRepoPublicKey;
|
|
100
102
|
};
|
|
103
|
+
withProfile: typeof withProfile;
|
|
104
|
+
createProfile: typeof createProfile;
|
|
101
105
|
};
|
|
102
106
|
export default _default;
|
|
103
|
-
export { RepoSecretsSection };
|
|
107
|
+
export { RepoSecretsSection, createProfile };
|
|
104
108
|
export type { WorkflowCompletionResult, WorkflowDispatchInputs, WorkflowRunConclusion, WorkflowRunStatus, WorkflowRunStatusFilter, WorkflowRunSummary, };
|
|
@@ -3,11 +3,14 @@ import type { Api } from '@octokit/plugin-rest-endpoint-methods/dist-types/types
|
|
|
3
3
|
import type { PaginateInterface } from '@octokit/plugin-paginate-rest/dist-types/types';
|
|
4
4
|
import type { paginateGraphQLInterface } from '@octokit/plugin-paginate-graphql/dist-types/index.js';
|
|
5
5
|
export declare const generateGithubAppToken: (config: any) => Promise<string>;
|
|
6
|
+
type GithubAuthConfig = import('./config_resolver').GithubAuthConfig;
|
|
7
|
+
export declare function getGithubAppTokenWithConfig(config: GithubAuthConfig, genGithubAppToken?: any): Promise<string>;
|
|
6
8
|
export declare function getGithubAppToken(org: string, genGithubAppToken?: any): Promise<string>;
|
|
7
9
|
type ExtendedOctokit = Octokit & Api & {
|
|
8
10
|
paginate: PaginateInterface;
|
|
9
11
|
} & paginateGraphQLInterface;
|
|
10
12
|
export { ExtendedOctokit };
|
|
13
|
+
export declare function getOctokitForOrgWithConfig(org: string, config: GithubAuthConfig, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
|
|
11
14
|
export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
|
|
12
15
|
export declare function getOctokitFromPat(envVar: string): Promise<ExtendedOctokit>;
|
|
13
16
|
declare const _default: {
|