@firestartr/cli 2.7.0-snapshot-13 → 2.7.0-snapshot-14
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 +1171 -273
- package/build/packages/cdk8s_renderer/index.d.ts +5 -3
- package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/charts/github/orgSettingsChart.d.ts +8 -0
- package/build/packages/cdk8s_renderer/src/charts/index.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/base/orgSettings.d.ts +5 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +139 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/orgsettings.schema.d.ts +32 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +109 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +34 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +111 -0
- package/build/packages/cdk8s_renderer/src/config.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/loader/lazy_loader.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/loader/loader.d.ts +7 -1
- package/build/packages/cdk8s_renderer/src/renderer/claims-render.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/validations/githubOrgSettings.d.ts +2 -0
- package/build/packages/gh_provisioner/src/entities/ghorgsettings/index.d.ts +7 -0
- package/build/packages/importer/src/decanter/gh/github_org_settings.d.ts +10 -0
- package/build/packages/importer/src/decanter/gh/github_org_settings_collection.d.ts +10 -0
- package/build/packages/importer/src/decanter/index.d.ts +2 -0
- package/build/packages/operator/src/ctl.d.ts +7 -0
- package/build/packages/operator/src/parentDependency.d.ts +30 -0
- package/build/packages/operator/src/processItem.d.ts +3 -0
- package/build/packages/operator/src/queueSort.d.ts +2 -0
- package/package.json +1 -1
|
@@ -10,9 +10,9 @@ export { InitializerClaimRef } from './src/initializers/claimRef';
|
|
|
10
10
|
export { GithubRepositoryOverrider } from './src/overriders/githubRepositoryOverride';
|
|
11
11
|
export { InitializerPatches as Initializer } from './src/initializers/base';
|
|
12
12
|
import { runComparer } from './src/comparer';
|
|
13
|
-
import { AllowedProviders, setPath } from './src/config';
|
|
13
|
+
import { AllowedProviders, setDefaultBranch, setPath, setRepositoryUrl } from './src/config';
|
|
14
14
|
import { render } from './src/renderer/renderer';
|
|
15
|
-
export { AllowedProviders, configureProvider } from './src/config';
|
|
15
|
+
export { AllowedProviders, configureProvider, setDefaultBranch, setRepositoryUrl, } from './src/config';
|
|
16
16
|
import { isCatalogEntity } from './src/validations/references';
|
|
17
17
|
import { normalizeModuleContent } from './src/normalizers';
|
|
18
18
|
import { loadCRs } from './src/loader/loader';
|
|
@@ -29,6 +29,8 @@ declare const _default: {
|
|
|
29
29
|
INITIALIZERS_BY_FILE_NAME: any;
|
|
30
30
|
NORMALIZERS: any[];
|
|
31
31
|
AllowedProviders: typeof AllowedProviders;
|
|
32
|
+
setRepositoryUrl: typeof setRepositoryUrl;
|
|
33
|
+
setDefaultBranch: typeof setDefaultBranch;
|
|
32
34
|
runComparer: typeof runComparer;
|
|
33
35
|
isCatalogEntity: typeof isCatalogEntity;
|
|
34
36
|
loadCRs: typeof loadCRs;
|
|
@@ -38,4 +40,4 @@ declare const _default: {
|
|
|
38
40
|
addLastStateAndLastClaimAnnotations: typeof addLastStateAndLastClaimAnnotations;
|
|
39
41
|
};
|
|
40
42
|
export default _default;
|
|
41
|
-
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>;
|
|
43
|
+
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, repositoryUrl?: string, defaultBranch?: string): Promise<void>;
|
|
@@ -2,3 +2,4 @@ export { GithubGroupChart } from './groupClaimChart';
|
|
|
2
2
|
export { GithubMembershipChart } from './membershipChart';
|
|
3
3
|
export { GithubRepositoryChart } from './repositoryChart';
|
|
4
4
|
export { GithubOrgWebhookChart } from './orgWebhookChart';
|
|
5
|
+
export { GithubOrgSettingsChart } from './orgSettingsChart';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FirestartrGithubOrganizationSettings, FirestartrGithubOrganizationSettingsProps } from '../../../imports/firestartr.dev';
|
|
2
|
+
import { IUnitializedStateKey } from '../../claims/base';
|
|
3
|
+
import { BaseGithubChart } from './base';
|
|
4
|
+
export declare class GithubOrgSettingsChart extends BaseGithubChart {
|
|
5
|
+
template(): FirestartrGithubOrganizationSettingsProps | IUnitializedStateKey;
|
|
6
|
+
gvk(): import("cdk8s").GroupVersionKind;
|
|
7
|
+
instanceApiObject(template: any): FirestartrGithubOrganizationSettings;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart } from './github';
|
|
1
|
+
import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart } from './github';
|
|
2
2
|
import { CatalogComponentChart, CatalogDomainChart, CatalogGroupChart, CatalogSystemChart, CatalogUserChart, CatalogTFWorkspaceChart, CatalogArgoDeployChart, CatalogSecretsChart, CatalogOrgWebhookChart, CatalogApiChart } from './catalog';
|
|
3
3
|
import { TFWorkspaceChart } from './workspaces/tfworkspaceChart';
|
|
4
4
|
import { ArgoDeployChart } from './argocd/argodeployChart';
|
|
@@ -21,5 +21,6 @@ declare const _default: {
|
|
|
21
21
|
ArgoDeployChart: typeof ArgoDeployChart;
|
|
22
22
|
SecretsChart: typeof SecretsChart;
|
|
23
23
|
GithubOrgWebhookChart: typeof GithubOrgWebhookChart;
|
|
24
|
+
GithubOrgSettingsChart: typeof GithubOrgSettingsChart;
|
|
24
25
|
};
|
|
25
26
|
export default _default;
|
|
@@ -872,6 +872,115 @@ declare const schemas: {
|
|
|
872
872
|
})[];
|
|
873
873
|
};
|
|
874
874
|
};
|
|
875
|
+
} | {
|
|
876
|
+
$schema: string;
|
|
877
|
+
$id: string;
|
|
878
|
+
definitions: {
|
|
879
|
+
GithubOrgSettingsClaim: {
|
|
880
|
+
$id: string;
|
|
881
|
+
type: string;
|
|
882
|
+
description: string;
|
|
883
|
+
allOf: ({
|
|
884
|
+
$ref: string;
|
|
885
|
+
type?: undefined;
|
|
886
|
+
properties?: undefined;
|
|
887
|
+
additionalProperties?: undefined;
|
|
888
|
+
required?: undefined;
|
|
889
|
+
} | {
|
|
890
|
+
type: string;
|
|
891
|
+
properties: {
|
|
892
|
+
name: {
|
|
893
|
+
type: string;
|
|
894
|
+
};
|
|
895
|
+
tfStateKey: {
|
|
896
|
+
$ref: string;
|
|
897
|
+
};
|
|
898
|
+
org: {
|
|
899
|
+
$ref: string;
|
|
900
|
+
};
|
|
901
|
+
billing_email: {
|
|
902
|
+
type: string;
|
|
903
|
+
};
|
|
904
|
+
twitter_username: {
|
|
905
|
+
type: string;
|
|
906
|
+
};
|
|
907
|
+
company: {
|
|
908
|
+
type: string;
|
|
909
|
+
};
|
|
910
|
+
blog: {
|
|
911
|
+
type: string;
|
|
912
|
+
};
|
|
913
|
+
email: {
|
|
914
|
+
type: string;
|
|
915
|
+
};
|
|
916
|
+
location: {
|
|
917
|
+
type: string;
|
|
918
|
+
};
|
|
919
|
+
description: {
|
|
920
|
+
type: string;
|
|
921
|
+
};
|
|
922
|
+
has_organization_projects: {
|
|
923
|
+
type: string;
|
|
924
|
+
};
|
|
925
|
+
has_repository_projects: {
|
|
926
|
+
type: string;
|
|
927
|
+
};
|
|
928
|
+
default_repository_permission: {
|
|
929
|
+
type: string;
|
|
930
|
+
enum: string[];
|
|
931
|
+
};
|
|
932
|
+
members_can_create_repositories: {
|
|
933
|
+
type: string;
|
|
934
|
+
};
|
|
935
|
+
members_can_create_public_repositories: {
|
|
936
|
+
type: string;
|
|
937
|
+
};
|
|
938
|
+
members_can_create_private_repositories: {
|
|
939
|
+
type: string;
|
|
940
|
+
};
|
|
941
|
+
members_can_create_internal_repositories: {
|
|
942
|
+
type: string;
|
|
943
|
+
};
|
|
944
|
+
members_can_create_pages: {
|
|
945
|
+
type: string;
|
|
946
|
+
};
|
|
947
|
+
members_can_create_public_pages: {
|
|
948
|
+
type: string;
|
|
949
|
+
};
|
|
950
|
+
members_can_create_private_pages: {
|
|
951
|
+
type: string;
|
|
952
|
+
};
|
|
953
|
+
members_can_fork_private_repositories: {
|
|
954
|
+
type: string;
|
|
955
|
+
};
|
|
956
|
+
web_commit_signoff_required: {
|
|
957
|
+
type: string;
|
|
958
|
+
};
|
|
959
|
+
advanced_security_enabled_for_new_repositories: {
|
|
960
|
+
type: string;
|
|
961
|
+
};
|
|
962
|
+
dependabot_alerts_enabled_for_new_repositories: {
|
|
963
|
+
type: string;
|
|
964
|
+
};
|
|
965
|
+
dependabot_security_updates_enabled_for_new_repositories: {
|
|
966
|
+
type: string;
|
|
967
|
+
};
|
|
968
|
+
dependency_graph_enabled_for_new_repositories: {
|
|
969
|
+
type: string;
|
|
970
|
+
};
|
|
971
|
+
secret_scanning_enabled_for_new_repositories: {
|
|
972
|
+
type: string;
|
|
973
|
+
};
|
|
974
|
+
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
975
|
+
type: string;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
additionalProperties: boolean;
|
|
979
|
+
required: string[];
|
|
980
|
+
$ref?: undefined;
|
|
981
|
+
})[];
|
|
982
|
+
};
|
|
983
|
+
};
|
|
875
984
|
} | {
|
|
876
985
|
$schema: string;
|
|
877
986
|
$id: string;
|
|
@@ -1427,6 +1536,36 @@ declare const schemas: {
|
|
|
1427
1536
|
})[];
|
|
1428
1537
|
};
|
|
1429
1538
|
};
|
|
1539
|
+
} | {
|
|
1540
|
+
$schema: string;
|
|
1541
|
+
$id: string;
|
|
1542
|
+
definitions: {
|
|
1543
|
+
OrgSettingsClaim: {
|
|
1544
|
+
$id: string;
|
|
1545
|
+
type: string;
|
|
1546
|
+
description: string;
|
|
1547
|
+
unevaluatedProperties: boolean;
|
|
1548
|
+
allOf: ({
|
|
1549
|
+
$ref: string;
|
|
1550
|
+
type?: undefined;
|
|
1551
|
+
properties?: undefined;
|
|
1552
|
+
} | {
|
|
1553
|
+
type: string;
|
|
1554
|
+
properties: {
|
|
1555
|
+
providers: {
|
|
1556
|
+
type: string;
|
|
1557
|
+
properties: {
|
|
1558
|
+
github: {
|
|
1559
|
+
$ref: string;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
additionalProperties: boolean;
|
|
1563
|
+
};
|
|
1564
|
+
};
|
|
1565
|
+
$ref?: undefined;
|
|
1566
|
+
})[];
|
|
1567
|
+
};
|
|
1568
|
+
};
|
|
1430
1569
|
})[];
|
|
1431
1570
|
};
|
|
1432
1571
|
export default schemas;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
$id: string;
|
|
4
|
+
definitions: {
|
|
5
|
+
OrgSettingsClaim: {
|
|
6
|
+
$id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
unevaluatedProperties: boolean;
|
|
10
|
+
allOf: ({
|
|
11
|
+
$ref: string;
|
|
12
|
+
type?: undefined;
|
|
13
|
+
properties?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
type: string;
|
|
16
|
+
properties: {
|
|
17
|
+
providers: {
|
|
18
|
+
type: string;
|
|
19
|
+
properties: {
|
|
20
|
+
github: {
|
|
21
|
+
$ref: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
additionalProperties: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
$ref?: undefined;
|
|
28
|
+
})[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
@@ -403,6 +403,115 @@ export declare const GithubSchemas: ({
|
|
|
403
403
|
})[];
|
|
404
404
|
};
|
|
405
405
|
};
|
|
406
|
+
} | {
|
|
407
|
+
$schema: string;
|
|
408
|
+
$id: string;
|
|
409
|
+
definitions: {
|
|
410
|
+
GithubOrgSettingsClaim: {
|
|
411
|
+
$id: string;
|
|
412
|
+
type: string;
|
|
413
|
+
description: string;
|
|
414
|
+
allOf: ({
|
|
415
|
+
$ref: string;
|
|
416
|
+
type?: undefined;
|
|
417
|
+
properties?: undefined;
|
|
418
|
+
additionalProperties?: undefined;
|
|
419
|
+
required?: undefined;
|
|
420
|
+
} | {
|
|
421
|
+
type: string;
|
|
422
|
+
properties: {
|
|
423
|
+
name: {
|
|
424
|
+
type: string;
|
|
425
|
+
};
|
|
426
|
+
tfStateKey: {
|
|
427
|
+
$ref: string;
|
|
428
|
+
};
|
|
429
|
+
org: {
|
|
430
|
+
$ref: string;
|
|
431
|
+
};
|
|
432
|
+
billing_email: {
|
|
433
|
+
type: string;
|
|
434
|
+
};
|
|
435
|
+
twitter_username: {
|
|
436
|
+
type: string;
|
|
437
|
+
};
|
|
438
|
+
company: {
|
|
439
|
+
type: string;
|
|
440
|
+
};
|
|
441
|
+
blog: {
|
|
442
|
+
type: string;
|
|
443
|
+
};
|
|
444
|
+
email: {
|
|
445
|
+
type: string;
|
|
446
|
+
};
|
|
447
|
+
location: {
|
|
448
|
+
type: string;
|
|
449
|
+
};
|
|
450
|
+
description: {
|
|
451
|
+
type: string;
|
|
452
|
+
};
|
|
453
|
+
has_organization_projects: {
|
|
454
|
+
type: string;
|
|
455
|
+
};
|
|
456
|
+
has_repository_projects: {
|
|
457
|
+
type: string;
|
|
458
|
+
};
|
|
459
|
+
default_repository_permission: {
|
|
460
|
+
type: string;
|
|
461
|
+
enum: string[];
|
|
462
|
+
};
|
|
463
|
+
members_can_create_repositories: {
|
|
464
|
+
type: string;
|
|
465
|
+
};
|
|
466
|
+
members_can_create_public_repositories: {
|
|
467
|
+
type: string;
|
|
468
|
+
};
|
|
469
|
+
members_can_create_private_repositories: {
|
|
470
|
+
type: string;
|
|
471
|
+
};
|
|
472
|
+
members_can_create_internal_repositories: {
|
|
473
|
+
type: string;
|
|
474
|
+
};
|
|
475
|
+
members_can_create_pages: {
|
|
476
|
+
type: string;
|
|
477
|
+
};
|
|
478
|
+
members_can_create_public_pages: {
|
|
479
|
+
type: string;
|
|
480
|
+
};
|
|
481
|
+
members_can_create_private_pages: {
|
|
482
|
+
type: string;
|
|
483
|
+
};
|
|
484
|
+
members_can_fork_private_repositories: {
|
|
485
|
+
type: string;
|
|
486
|
+
};
|
|
487
|
+
web_commit_signoff_required: {
|
|
488
|
+
type: string;
|
|
489
|
+
};
|
|
490
|
+
advanced_security_enabled_for_new_repositories: {
|
|
491
|
+
type: string;
|
|
492
|
+
};
|
|
493
|
+
dependabot_alerts_enabled_for_new_repositories: {
|
|
494
|
+
type: string;
|
|
495
|
+
};
|
|
496
|
+
dependabot_security_updates_enabled_for_new_repositories: {
|
|
497
|
+
type: string;
|
|
498
|
+
};
|
|
499
|
+
dependency_graph_enabled_for_new_repositories: {
|
|
500
|
+
type: string;
|
|
501
|
+
};
|
|
502
|
+
secret_scanning_enabled_for_new_repositories: {
|
|
503
|
+
type: string;
|
|
504
|
+
};
|
|
505
|
+
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
506
|
+
type: string;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
additionalProperties: boolean;
|
|
510
|
+
required: string[];
|
|
511
|
+
$ref?: undefined;
|
|
512
|
+
})[];
|
|
513
|
+
};
|
|
514
|
+
};
|
|
406
515
|
} | {
|
|
407
516
|
$schema: string;
|
|
408
517
|
$id: string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IOrgSettingsClaim } from '../base/orgSettings';
|
|
2
|
+
export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
|
|
3
|
+
providers: {
|
|
4
|
+
github: {
|
|
5
|
+
name: string;
|
|
6
|
+
org: string;
|
|
7
|
+
billing_email: string;
|
|
8
|
+
twitter_username?: string;
|
|
9
|
+
company?: string;
|
|
10
|
+
blog?: string;
|
|
11
|
+
email?: string;
|
|
12
|
+
location?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
has_organization_projects?: boolean;
|
|
15
|
+
has_repository_projects?: boolean;
|
|
16
|
+
default_repository_permission?: 'read' | 'write' | 'admin' | 'none';
|
|
17
|
+
members_can_create_repositories?: boolean;
|
|
18
|
+
members_can_create_public_repositories?: boolean;
|
|
19
|
+
members_can_create_private_repositories?: boolean;
|
|
20
|
+
members_can_create_internal_repositories?: boolean;
|
|
21
|
+
members_can_create_pages?: boolean;
|
|
22
|
+
members_can_create_public_pages?: boolean;
|
|
23
|
+
members_can_create_private_pages?: boolean;
|
|
24
|
+
members_can_fork_private_repositories?: boolean;
|
|
25
|
+
web_commit_signoff_required?: boolean;
|
|
26
|
+
advanced_security_enabled_for_new_repositories?: boolean;
|
|
27
|
+
dependabot_alerts_enabled_for_new_repositories?: boolean;
|
|
28
|
+
dependabot_security_updates_enabled_for_new_repositories?: boolean;
|
|
29
|
+
dependency_graph_enabled_for_new_repositories?: boolean;
|
|
30
|
+
secret_scanning_enabled_for_new_repositories?: boolean;
|
|
31
|
+
secret_scanning_push_protection_enabled_for_new_repositories?: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
$id: string;
|
|
4
|
+
definitions: {
|
|
5
|
+
GithubOrgSettingsClaim: {
|
|
6
|
+
$id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
allOf: ({
|
|
10
|
+
$ref: string;
|
|
11
|
+
type?: undefined;
|
|
12
|
+
properties?: undefined;
|
|
13
|
+
additionalProperties?: undefined;
|
|
14
|
+
required?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
type: string;
|
|
17
|
+
properties: {
|
|
18
|
+
name: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
tfStateKey: {
|
|
22
|
+
$ref: string;
|
|
23
|
+
};
|
|
24
|
+
org: {
|
|
25
|
+
$ref: string;
|
|
26
|
+
};
|
|
27
|
+
billing_email: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
twitter_username: {
|
|
31
|
+
type: string;
|
|
32
|
+
};
|
|
33
|
+
company: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
blog: {
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
email: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
location: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
description: {
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
has_organization_projects: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
has_repository_projects: {
|
|
52
|
+
type: string;
|
|
53
|
+
};
|
|
54
|
+
default_repository_permission: {
|
|
55
|
+
type: string;
|
|
56
|
+
enum: string[];
|
|
57
|
+
};
|
|
58
|
+
members_can_create_repositories: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
members_can_create_public_repositories: {
|
|
62
|
+
type: string;
|
|
63
|
+
};
|
|
64
|
+
members_can_create_private_repositories: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
members_can_create_internal_repositories: {
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
members_can_create_pages: {
|
|
71
|
+
type: string;
|
|
72
|
+
};
|
|
73
|
+
members_can_create_public_pages: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
members_can_create_private_pages: {
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
members_can_fork_private_repositories: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
web_commit_signoff_required: {
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
85
|
+
advanced_security_enabled_for_new_repositories: {
|
|
86
|
+
type: string;
|
|
87
|
+
};
|
|
88
|
+
dependabot_alerts_enabled_for_new_repositories: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
dependabot_security_updates_enabled_for_new_repositories: {
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
dependency_graph_enabled_for_new_repositories: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
secret_scanning_enabled_for_new_repositories: {
|
|
98
|
+
type: string;
|
|
99
|
+
};
|
|
100
|
+
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
additionalProperties: boolean;
|
|
105
|
+
required: string[];
|
|
106
|
+
$ref?: undefined;
|
|
107
|
+
})[];
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export type AllowedPathNames = 'initializers' | 'globals' | 'crs' | 'claims' | 'claimsDefaults' | 'domains' | 'systems' | '.github';
|
|
2
|
+
export declare function setRepositoryUrl(url: string | undefined): void;
|
|
3
|
+
export declare function getRepositoryUrl(): string | undefined;
|
|
4
|
+
export declare function setDefaultBranch(branch: string): void;
|
|
5
|
+
export declare function getDefaultBranch(): string;
|
|
2
6
|
export declare function setExcludedPaths(excludedPaths: string[]): void;
|
|
3
7
|
export declare function getAdditionalPaths(): string[];
|
|
4
8
|
export declare function getPath(pathName: AllowedPathNames): string;
|
|
@@ -2,5 +2,5 @@ import { InitializerPatches } from '../initializers/base';
|
|
|
2
2
|
import { GlobalSection } from '../globals/base';
|
|
3
3
|
import { OverriderPatches } from '../overriders/base';
|
|
4
4
|
import { Normalizer } from '../normalizers/base';
|
|
5
|
-
export declare function loadClaim(claimRef: string, org: string, defaults: any, patchClaim: (claim: any, defaults: any) => any, loadInitializers: (claim: any) => Promise<InitializerPatches[]>, loadGlobals: (claim: any) => Promise<GlobalSection[]>, loadOverrides: (claim: any) => OverriderPatches[], loadNormalizers: (claim: any, path: string) => Promise<Normalizer[]>, cwd?: string, existingRefs?: any, postValidations?: Map<string, Function[]>): Promise<any[]>;
|
|
5
|
+
export declare function loadClaim(claimRef: string, org: string, defaults: any, patchClaim: (claim: any, defaults: any) => any, loadInitializers: (claim: any, claimPath?: string) => Promise<InitializerPatches[]>, loadGlobals: (claim: any) => Promise<GlobalSection[]>, loadOverrides: (claim: any) => OverriderPatches[], loadNormalizers: (claim: any, path: string) => Promise<Normalizer[]>, cwd?: string, existingRefs?: any, postValidations?: Map<string, Function[]>): Promise<any[]>;
|
|
6
6
|
export declare function resetLazyLoader(): void;
|
|
@@ -12,9 +12,14 @@ export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
14
|
export declare function loadNormalizers(_claim: any, path?: string): Promise<Normalizer[]>;
|
|
15
|
-
export declare function loadInitializers(claim: any, initializersPath?: string): Promise<InitializerPatches[]>;
|
|
15
|
+
export declare function loadInitializers(claim: any, claimPath?: string, initializersPath?: string): Promise<InitializerPatches[]>;
|
|
16
16
|
export declare function loadClaimDefaults(): any;
|
|
17
17
|
export declare function patchClaim(claim: any, defaultsClaims: any): any;
|
|
18
|
+
export interface LoadedCrsWithFullSet {
|
|
19
|
+
crs: any;
|
|
20
|
+
fullCrs: any;
|
|
21
|
+
}
|
|
22
|
+
export declare function loadCRsWithFullSet(crsPath?: string, excludedPaths?: string[], allowedClaimReferences?: string[]): Promise<LoadedCrsWithFullSet>;
|
|
18
23
|
export declare function loadCRs(crsPath?: string, excludedPaths?: string[], allowedClaimReferences?: string[]): Promise<any>;
|
|
19
24
|
export interface IRenameResult {
|
|
20
25
|
kind: string;
|
|
@@ -34,5 +39,6 @@ export interface RenderData {
|
|
|
34
39
|
export declare function loadClaimsList(claimRefList: AsyncGenerator<string, void, unknown>, claimsPath?: string): Promise<{
|
|
35
40
|
renderClaims: RenderClaims;
|
|
36
41
|
crs: any;
|
|
42
|
+
fullCrs: any;
|
|
37
43
|
renames?: IRenameResult[];
|
|
38
44
|
}>;
|
|
@@ -8,4 +8,4 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
|
|
|
8
8
|
crs: any;
|
|
9
9
|
renames?: IRenameResult[];
|
|
10
10
|
}): Promise<RenderedCrMap>;
|
|
11
|
-
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null): Promise<IRenderClaimResult>;
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string): Promise<IRenderClaimResult>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GithubDecanter } from './base';
|
|
2
|
+
export default class OrgSettingsGithubDecanter extends GithubDecanter {
|
|
3
|
+
claimKind: string;
|
|
4
|
+
__decantStart(): void;
|
|
5
|
+
__decantProviders(): void;
|
|
6
|
+
__gatherOrgSettings(): Promise<void>;
|
|
7
|
+
__gatherProviderPayload(): void;
|
|
8
|
+
__adaptInitializerBase(_claim: any): Promise<import("../../../../cdk8s_renderer").InitializerDefault>;
|
|
9
|
+
private orgSettingsName;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICollection } from '../collections';
|
|
2
|
+
import { CollectionFilter } from '../filters';
|
|
3
|
+
import { GithubDecanter } from './base';
|
|
4
|
+
declare class OrgSettingsCollectionGithubDecanter extends GithubDecanter {
|
|
5
|
+
static collectionKind: string;
|
|
6
|
+
collection(filters?: CollectionFilter[]): Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
interface OrgSettingsCollectionGithubDecanter extends ICollection {
|
|
9
|
+
}
|
|
10
|
+
export default OrgSettingsCollectionGithubDecanter;
|
|
@@ -2,10 +2,12 @@ export type { CollectionFilter } from './collections';
|
|
|
2
2
|
import type { CollectionFilter } from './collections';
|
|
3
3
|
import GroupCollectionGithubDecanter from './gh/github_group_collection';
|
|
4
4
|
import MemberCollectionGithubDecanter from './gh/github_member_collection';
|
|
5
|
+
import OrgSettingsCollectionGithubDecanter from './gh/github_org_settings_collection';
|
|
5
6
|
import RepoCollectionGithubDecanter from './gh/github_repo_collection';
|
|
6
7
|
export declare const collections: {
|
|
7
8
|
GroupCollectionGithubDecanter: typeof GroupCollectionGithubDecanter;
|
|
8
9
|
MemberCollectionGithubDecanter: typeof MemberCollectionGithubDecanter;
|
|
10
|
+
OrgSettingsCollectionGithubDecanter: typeof OrgSettingsCollectionGithubDecanter;
|
|
9
11
|
RepoCollectionGithubDecanter: typeof RepoCollectionGithubDecanter;
|
|
10
12
|
};
|
|
11
13
|
export declare function isInPreviousCRs(kind: string, name: string): boolean;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as client from '@kubernetes/client-node';
|
|
2
2
|
export declare function getItem(kind: string, namespace: string, item: any): Promise<any>;
|
|
3
3
|
export declare function getItemByItemPath(itemPath: string, apiGroup?: string, apiVersion?: string): Promise<any>;
|
|
4
|
+
/**
|
|
5
|
+
* Like getItemByItemPath but returns null when the resource is not found
|
|
6
|
+
* (404) or there is a conflict (409), without logging those as errors.
|
|
7
|
+
* Use this when a missing resource is an expected condition (e.g. checking
|
|
8
|
+
* whether a parent CR has been provisioned before its children arrive).
|
|
9
|
+
*/
|
|
10
|
+
export declare function getItemByItemPathOrNull(itemPath: string, apiGroup?: string, apiVersion?: string): Promise<any | null>;
|
|
4
11
|
export declare function writeSecret(secret: any, namespace: any): Promise<any>;
|
|
5
12
|
export declare function writeStatus(kind: string, namespace: string, item: any): Promise<any>;
|
|
6
13
|
export declare function writeFinalizer(kind: string, namespace: string, item: any): Promise<any>;
|