@firestartr/cli 2.9.0-snapshot-org-variables-section-4 → 2.9.0-snapshot-org-variables-section-5
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 +9 -500
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +0 -262
- package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/charts/index.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +0 -46
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -46
- package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +0 -6
- package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +0 -46
- package/build/packages/cdk8s_renderer/src/renderer/claims-render.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/renderer/previous-crs-extractor.d.ts +1 -1
- package/package.json +1 -1
- package/build/packages/cdk8s_renderer/src/charts/github/orgVariableSectionChart.d.ts +0 -8
- package/build/packages/cdk8s_renderer/src/validations/githubOrgVariableSection.d.ts +0 -4
package/build/index.js
CHANGED
|
@@ -316758,12 +316758,9 @@ class UUIDInitializer extends InitializerPatches {
|
|
|
316758
316758
|
},
|
|
316759
316759
|
apply(cr) {
|
|
316760
316760
|
const ctx = helperCTX(this);
|
|
316761
|
-
const
|
|
316762
|
-
|
|
316763
|
-
|
|
316764
|
-
claim.providers?.[ctx.provider]?.tfStateKey ||
|
|
316765
|
-
(0,wrapper.v4)()
|
|
316766
|
-
: claim.providers?.[ctx.provider]?.tfStateKey || (0,wrapper.v4)();
|
|
316761
|
+
const uuid = previousCR?.spec?.firestartr?.tfStateKey ||
|
|
316762
|
+
claim.providers?.[ctx.provider]?.tfStateKey ||
|
|
316763
|
+
(0,wrapper.v4)();
|
|
316767
316764
|
if (!cr.spec)
|
|
316768
316765
|
cr.spec = {};
|
|
316769
316766
|
if (!cr.spec.firestartr)
|
|
@@ -319300,25 +319297,6 @@ function extractAllRefs(claimData) {
|
|
|
319300
319297
|
refs.push(...secretsRefs);
|
|
319301
319298
|
break;
|
|
319302
319299
|
}
|
|
319303
|
-
case 'OrgSettingsClaim': {
|
|
319304
|
-
const actionsVariables = parsedClaim.providers?.github?.actions_variables;
|
|
319305
|
-
if (Array.isArray(actionsVariables)) {
|
|
319306
|
-
for (const variable of actionsVariables) {
|
|
319307
|
-
if (variable.visibility !== 'selected')
|
|
319308
|
-
continue;
|
|
319309
|
-
const selectedRepos = variable.selected_repositories;
|
|
319310
|
-
if (!Array.isArray(selectedRepos))
|
|
319311
|
-
continue;
|
|
319312
|
-
for (const repoRef of selectedRepos) {
|
|
319313
|
-
const match = repoRef.match(/^component:(.+)$/);
|
|
319314
|
-
if (match) {
|
|
319315
|
-
refs.push(`ComponentClaim-${match[1]}`);
|
|
319316
|
-
}
|
|
319317
|
-
}
|
|
319318
|
-
}
|
|
319319
|
-
}
|
|
319320
|
-
break;
|
|
319321
|
-
}
|
|
319322
319300
|
}
|
|
319323
319301
|
logger.info(`Refs for ${parsedClaim.kind}-${parsedClaim.name}: ${[...new Set(refs)].join(',')}`);
|
|
319324
319302
|
return [...new Set(refs)];
|
|
@@ -320445,49 +320423,6 @@ const organizationSettingsProperties = {
|
|
|
320445
320423
|
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
320446
320424
|
type: 'boolean',
|
|
320447
320425
|
},
|
|
320448
|
-
actions_variables: {
|
|
320449
|
-
type: 'array',
|
|
320450
|
-
items: {
|
|
320451
|
-
type: 'object',
|
|
320452
|
-
properties: {
|
|
320453
|
-
name: {
|
|
320454
|
-
type: 'string',
|
|
320455
|
-
pattern: '^[A-Za-z0-9_]+$',
|
|
320456
|
-
},
|
|
320457
|
-
value: {
|
|
320458
|
-
type: 'string',
|
|
320459
|
-
},
|
|
320460
|
-
visibility: {
|
|
320461
|
-
type: 'string',
|
|
320462
|
-
enum: ['all', 'private', 'selected'],
|
|
320463
|
-
},
|
|
320464
|
-
selected_repositories: {
|
|
320465
|
-
type: 'array',
|
|
320466
|
-
items: {
|
|
320467
|
-
$ref: 'firestartr.dev://common/FirestartrComponentRef',
|
|
320468
|
-
},
|
|
320469
|
-
},
|
|
320470
|
-
},
|
|
320471
|
-
required: ['name', 'value', 'visibility'],
|
|
320472
|
-
additionalProperties: false,
|
|
320473
|
-
allOf: [
|
|
320474
|
-
{
|
|
320475
|
-
if: {
|
|
320476
|
-
properties: {
|
|
320477
|
-
visibility: { const: 'selected' },
|
|
320478
|
-
},
|
|
320479
|
-
required: ['visibility'],
|
|
320480
|
-
},
|
|
320481
|
-
then: {},
|
|
320482
|
-
else: {
|
|
320483
|
-
properties: {
|
|
320484
|
-
selected_repositories: { type: 'array', maxItems: 0 },
|
|
320485
|
-
},
|
|
320486
|
-
},
|
|
320487
|
-
},
|
|
320488
|
-
],
|
|
320489
|
-
},
|
|
320490
|
-
},
|
|
320491
320426
|
};
|
|
320492
320427
|
/* harmony default export */ const github_orgsettings_schema = ({
|
|
320493
320428
|
$schema: SCHEMA,
|
|
@@ -323839,7 +323774,7 @@ const VARIANT_OF_ANNOTATION = 'firestartr.dev/variant-of';
|
|
|
323839
323774
|
function isVariantCR(cr) {
|
|
323840
323775
|
return cr.metadata?.annotations?.[VARIANT_OF_ANNOTATION] !== undefined;
|
|
323841
323776
|
}
|
|
323842
|
-
function getPreviousCRfromClaim(claim, previousCRs
|
|
323777
|
+
function getPreviousCRfromClaim(claim, previousCRs) {
|
|
323843
323778
|
const previousCRsKeys = Object.keys(previousCRs);
|
|
323844
323779
|
const isVariantClaim = !!claim._parentClaimName;
|
|
323845
323780
|
for (const previousCRKey of previousCRsKeys) {
|
|
@@ -323848,8 +323783,6 @@ function getPreviousCRfromClaim(claim, previousCRs, expectedKind) {
|
|
|
323848
323783
|
continue;
|
|
323849
323784
|
if (isExcludedFromPreviousCR(previousCR.kind))
|
|
323850
323785
|
continue;
|
|
323851
|
-
if (expectedKind && previousCR.kind !== expectedKind)
|
|
323852
|
-
continue;
|
|
323853
323786
|
const crVariant = isVariantCR(previousCR);
|
|
323854
323787
|
if (isVariantClaim && !crVariant)
|
|
323855
323788
|
continue;
|
|
@@ -324864,254 +324797,6 @@ var FirestartrGithubOrganizationSettingsSpecContextProviderRefKind;
|
|
|
324864
324797
|
/** FirestartrProviderConfig */
|
|
324865
324798
|
FirestartrGithubOrganizationSettingsSpecContextProviderRefKind["FIRESTARTR_PROVIDER_CONFIG"] = "FirestartrProviderConfig";
|
|
324866
324799
|
})(FirestartrGithubOrganizationSettingsSpecContextProviderRefKind || (FirestartrGithubOrganizationSettingsSpecContextProviderRefKind = {}));
|
|
324867
|
-
/**
|
|
324868
|
-
* A resource to handle GitHub Organization Actions Variables.
|
|
324869
|
-
*
|
|
324870
|
-
* @schema FirestartrGithubOrganizationVariableSection
|
|
324871
|
-
*/
|
|
324872
|
-
class FirestartrGithubOrganizationVariableSection extends lib.ApiObject {
|
|
324873
|
-
/**
|
|
324874
|
-
* Renders a Kubernetes manifest for "FirestartrGithubOrganizationVariableSection".
|
|
324875
|
-
*
|
|
324876
|
-
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
324877
|
-
*
|
|
324878
|
-
* @param props initialization props
|
|
324879
|
-
*/
|
|
324880
|
-
static manifest(props) {
|
|
324881
|
-
return {
|
|
324882
|
-
...FirestartrGithubOrganizationVariableSection.GVK,
|
|
324883
|
-
...toJson_FirestartrGithubOrganizationVariableSectionProps(props),
|
|
324884
|
-
};
|
|
324885
|
-
}
|
|
324886
|
-
/**
|
|
324887
|
-
* Defines a "FirestartrGithubOrganizationVariableSection" API object
|
|
324888
|
-
* @param scope the scope in which to define this object
|
|
324889
|
-
* @param id a scope-local name for the object
|
|
324890
|
-
* @param props initialization props
|
|
324891
|
-
*/
|
|
324892
|
-
constructor(scope, id, props) {
|
|
324893
|
-
super(scope, id, {
|
|
324894
|
-
...FirestartrGithubOrganizationVariableSection.GVK,
|
|
324895
|
-
...props,
|
|
324896
|
-
});
|
|
324897
|
-
}
|
|
324898
|
-
/**
|
|
324899
|
-
* Renders the object to Kubernetes JSON.
|
|
324900
|
-
*/
|
|
324901
|
-
toJson() {
|
|
324902
|
-
const resolved = super.toJson();
|
|
324903
|
-
return {
|
|
324904
|
-
...FirestartrGithubOrganizationVariableSection.GVK,
|
|
324905
|
-
...toJson_FirestartrGithubOrganizationVariableSectionProps(resolved),
|
|
324906
|
-
};
|
|
324907
|
-
}
|
|
324908
|
-
}
|
|
324909
|
-
/**
|
|
324910
|
-
* Returns the apiVersion and kind for "FirestartrGithubOrganizationVariableSection"
|
|
324911
|
-
*/
|
|
324912
|
-
FirestartrGithubOrganizationVariableSection.GVK = {
|
|
324913
|
-
apiVersion: 'firestartr.dev/v1',
|
|
324914
|
-
kind: 'FirestartrGithubOrganizationVariableSection',
|
|
324915
|
-
};
|
|
324916
|
-
|
|
324917
|
-
/**
|
|
324918
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionProps' to JSON representation.
|
|
324919
|
-
*/
|
|
324920
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
324921
|
-
function toJson_FirestartrGithubOrganizationVariableSectionProps(obj) {
|
|
324922
|
-
if (obj === undefined) {
|
|
324923
|
-
return undefined;
|
|
324924
|
-
}
|
|
324925
|
-
const result = {
|
|
324926
|
-
'metadata': obj.metadata,
|
|
324927
|
-
'spec': toJson_FirestartrGithubOrganizationVariableSectionSpec(obj.spec),
|
|
324928
|
-
};
|
|
324929
|
-
// filter undefined values
|
|
324930
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
324931
|
-
}
|
|
324932
|
-
/**
|
|
324933
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpec' to JSON representation.
|
|
324934
|
-
*/
|
|
324935
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
324936
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpec(obj) {
|
|
324937
|
-
if (obj === undefined) {
|
|
324938
|
-
return undefined;
|
|
324939
|
-
}
|
|
324940
|
-
const result = {
|
|
324941
|
-
'org': obj.org,
|
|
324942
|
-
'actionsVariables': obj.actionsVariables?.map(y => toJson_FirestartrGithubOrganizationVariableSectionSpecActionsVariables(y)),
|
|
324943
|
-
'context': toJson_FirestartrGithubOrganizationVariableSectionSpecContext(obj.context),
|
|
324944
|
-
'firestartr': toJson_FirestartrGithubOrganizationVariableSectionSpecFirestartr(obj.firestartr),
|
|
324945
|
-
'writeConnectionSecretToRef': toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef(obj.writeConnectionSecretToRef),
|
|
324946
|
-
};
|
|
324947
|
-
// filter undefined values
|
|
324948
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
324949
|
-
}
|
|
324950
|
-
/**
|
|
324951
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecActionsVariables' to JSON representation.
|
|
324952
|
-
*/
|
|
324953
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
324954
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecActionsVariables(obj) {
|
|
324955
|
-
if (obj === undefined) {
|
|
324956
|
-
return undefined;
|
|
324957
|
-
}
|
|
324958
|
-
const result = {
|
|
324959
|
-
'name': obj.name,
|
|
324960
|
-
'value': obj.value,
|
|
324961
|
-
'visibility': obj.visibility,
|
|
324962
|
-
'selectedRepositories': obj.selectedRepositories?.map(y => y),
|
|
324963
|
-
};
|
|
324964
|
-
// filter undefined values
|
|
324965
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
324966
|
-
}
|
|
324967
|
-
/**
|
|
324968
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContext' to JSON representation.
|
|
324969
|
-
*/
|
|
324970
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
324971
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecContext(obj) {
|
|
324972
|
-
if (obj === undefined) {
|
|
324973
|
-
return undefined;
|
|
324974
|
-
}
|
|
324975
|
-
const result = {
|
|
324976
|
-
'backend': toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackend(obj.backend),
|
|
324977
|
-
'provider': toJson_FirestartrGithubOrganizationVariableSectionSpecContextProvider(obj.provider),
|
|
324978
|
-
};
|
|
324979
|
-
// filter undefined values
|
|
324980
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
324981
|
-
}
|
|
324982
|
-
/**
|
|
324983
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecFirestartr' to JSON representation.
|
|
324984
|
-
*/
|
|
324985
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
324986
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecFirestartr(obj) {
|
|
324987
|
-
if (obj === undefined) {
|
|
324988
|
-
return undefined;
|
|
324989
|
-
}
|
|
324990
|
-
const result = {
|
|
324991
|
-
'tfStateKey': obj.tfStateKey,
|
|
324992
|
-
};
|
|
324993
|
-
// filter undefined values
|
|
324994
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
324995
|
-
}
|
|
324996
|
-
/**
|
|
324997
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef' to JSON representation.
|
|
324998
|
-
*/
|
|
324999
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325000
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef(obj) {
|
|
325001
|
-
if (obj === undefined) {
|
|
325002
|
-
return undefined;
|
|
325003
|
-
}
|
|
325004
|
-
const result = {
|
|
325005
|
-
'name': obj.name,
|
|
325006
|
-
'outputs': obj.outputs?.map(y => toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs(y)),
|
|
325007
|
-
};
|
|
325008
|
-
// filter undefined values
|
|
325009
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325010
|
-
}
|
|
325011
|
-
/* eslint-enable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325012
|
-
/**
|
|
325013
|
-
* Visibility of the variable
|
|
325014
|
-
*
|
|
325015
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility
|
|
325016
|
-
*/
|
|
325017
|
-
var FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility;
|
|
325018
|
-
(function (FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility) {
|
|
325019
|
-
/** all */
|
|
325020
|
-
FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility["ALL"] = "all";
|
|
325021
|
-
/** private */
|
|
325022
|
-
FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility["PRIVATE"] = "private";
|
|
325023
|
-
/** selected */
|
|
325024
|
-
FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility["SELECTED"] = "selected";
|
|
325025
|
-
})(FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility || (FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility = {}));
|
|
325026
|
-
/**
|
|
325027
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackend' to JSON representation.
|
|
325028
|
-
*/
|
|
325029
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325030
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackend(obj) {
|
|
325031
|
-
if (obj === undefined) {
|
|
325032
|
-
return undefined;
|
|
325033
|
-
}
|
|
325034
|
-
const result = {
|
|
325035
|
-
'ref': toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackendRef(obj.ref),
|
|
325036
|
-
};
|
|
325037
|
-
// filter undefined values
|
|
325038
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325039
|
-
}
|
|
325040
|
-
/**
|
|
325041
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProvider' to JSON representation.
|
|
325042
|
-
*/
|
|
325043
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325044
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProvider(obj) {
|
|
325045
|
-
if (obj === undefined) {
|
|
325046
|
-
return undefined;
|
|
325047
|
-
}
|
|
325048
|
-
const result = {
|
|
325049
|
-
'ref': toJson_FirestartrGithubOrganizationVariableSectionSpecContextProviderRef(obj.ref),
|
|
325050
|
-
};
|
|
325051
|
-
// filter undefined values
|
|
325052
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325053
|
-
}
|
|
325054
|
-
/**
|
|
325055
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs' to JSON representation.
|
|
325056
|
-
*/
|
|
325057
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325058
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs(obj) {
|
|
325059
|
-
if (obj === undefined) {
|
|
325060
|
-
return undefined;
|
|
325061
|
-
}
|
|
325062
|
-
const result = {
|
|
325063
|
-
'key': obj.key,
|
|
325064
|
-
};
|
|
325065
|
-
// filter undefined values
|
|
325066
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325067
|
-
}
|
|
325068
|
-
/**
|
|
325069
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackendRef' to JSON representation.
|
|
325070
|
-
*/
|
|
325071
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325072
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackendRef(obj) {
|
|
325073
|
-
if (obj === undefined) {
|
|
325074
|
-
return undefined;
|
|
325075
|
-
}
|
|
325076
|
-
const result = {
|
|
325077
|
-
'kind': obj.kind,
|
|
325078
|
-
'name': obj.name,
|
|
325079
|
-
};
|
|
325080
|
-
// filter undefined values
|
|
325081
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325082
|
-
}
|
|
325083
|
-
/**
|
|
325084
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProviderRef' to JSON representation.
|
|
325085
|
-
*/
|
|
325086
|
-
/* eslint-disable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325087
|
-
function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProviderRef(obj) {
|
|
325088
|
-
if (obj === undefined) {
|
|
325089
|
-
return undefined;
|
|
325090
|
-
}
|
|
325091
|
-
const result = {
|
|
325092
|
-
'kind': obj.kind,
|
|
325093
|
-
'name': obj.name,
|
|
325094
|
-
};
|
|
325095
|
-
// filter undefined values
|
|
325096
|
-
return Object.entries(result).reduce((r, i) => (i[1] === undefined) ? r : ({ ...r, [i[0]]: i[1] }), {});
|
|
325097
|
-
}
|
|
325098
|
-
/* eslint-enable max-len, @stylistic/max-len, quote-props, @stylistic/quote-props */
|
|
325099
|
-
/**
|
|
325100
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind
|
|
325101
|
-
*/
|
|
325102
|
-
var FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind;
|
|
325103
|
-
(function (FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind) {
|
|
325104
|
-
/** FirestartrProviderConfig */
|
|
325105
|
-
FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind["FIRESTARTR_PROVIDER_CONFIG"] = "FirestartrProviderConfig";
|
|
325106
|
-
})(FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind || (FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind = {}));
|
|
325107
|
-
/**
|
|
325108
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind
|
|
325109
|
-
*/
|
|
325110
|
-
var FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind;
|
|
325111
|
-
(function (FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind) {
|
|
325112
|
-
/** FirestartrProviderConfig */
|
|
325113
|
-
FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind["FIRESTARTR_PROVIDER_CONFIG"] = "FirestartrProviderConfig";
|
|
325114
|
-
})(FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind || (FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind = {}));
|
|
325115
324800
|
/**
|
|
325116
324801
|
* A resource to handle GitHub Organization Webhooks
|
|
325117
324802
|
*
|
|
@@ -327961,65 +327646,6 @@ class GithubOrgSettingsChart extends BaseGithubChart {
|
|
|
327961
327646
|
}
|
|
327962
327647
|
}
|
|
327963
327648
|
|
|
327964
|
-
;// CONCATENATED MODULE: ../cdk8s_renderer/src/charts/github/orgVariableSectionChart.ts
|
|
327965
|
-
|
|
327966
|
-
|
|
327967
|
-
|
|
327968
|
-
class GithubOrgVariableSectionChart extends BaseGithubChart {
|
|
327969
|
-
template() {
|
|
327970
|
-
const claim = this.get('claim');
|
|
327971
|
-
const firestartrId = this.get('firestartrId');
|
|
327972
|
-
const githubProvider = claim.providers.github;
|
|
327973
|
-
const actionsVariables = (githubProvider.actions_variables || []).map((v) => {
|
|
327974
|
-
const entry = {
|
|
327975
|
-
name: v.name,
|
|
327976
|
-
value: v.value,
|
|
327977
|
-
visibility: v.visibility,
|
|
327978
|
-
};
|
|
327979
|
-
if (v.selected_repositories && v.selected_repositories.length > 0) {
|
|
327980
|
-
entry.selectedRepositories = v.selected_repositories.map((ref) => {
|
|
327981
|
-
const match = ref.match(/^component:(.+)$/);
|
|
327982
|
-
if (!match) {
|
|
327983
|
-
throw new ChartRenderError('OrgSettingsClaim', claim.name, `Invalid component ref "${ref}" in selected_repositories. Expected format: component:<name>`);
|
|
327984
|
-
}
|
|
327985
|
-
const componentName = match[1];
|
|
327986
|
-
const resolvedCr = this.refResolver('ComponentClaim', componentName);
|
|
327987
|
-
const org = resolvedCr?.spec?.org;
|
|
327988
|
-
const repoName = resolvedCr?.metadata?.annotations?.['firestartr.dev/external-name'] || resolvedCr?.metadata?.name?.replace(/-[0-9a-f-]{36}$/, '');
|
|
327989
|
-
if (!org || !repoName) {
|
|
327990
|
-
throw new ChartRenderError('OrgSettingsClaim', claim.name, `Referenced component "${componentName}" has no GitHub provider configured`);
|
|
327991
|
-
}
|
|
327992
|
-
return `${org}/${repoName}`;
|
|
327993
|
-
});
|
|
327994
|
-
}
|
|
327995
|
-
return entry;
|
|
327996
|
-
});
|
|
327997
|
-
const template = {
|
|
327998
|
-
metadata: {
|
|
327999
|
-
name: githubProvider.name,
|
|
328000
|
-
},
|
|
328001
|
-
spec: {
|
|
328002
|
-
org: githubProvider.org,
|
|
328003
|
-
actionsVariables,
|
|
328004
|
-
firestartr: {
|
|
328005
|
-
tfStateKey: firestartrId,
|
|
328006
|
-
},
|
|
328007
|
-
writeConnectionSecretToRef: {
|
|
328008
|
-
name: `firestartrgithuborganizationvariablesection-${githubProvider.name}-outputs`.toLowerCase(),
|
|
328009
|
-
outputs: [{ key: 'managed_variables' }, { key: 'variable_ids' }],
|
|
328010
|
-
},
|
|
328011
|
-
},
|
|
328012
|
-
};
|
|
328013
|
-
return JSON.parse(JSON.stringify(template));
|
|
328014
|
-
}
|
|
328015
|
-
gvk() {
|
|
328016
|
-
return FirestartrGithubOrganizationVariableSection.GVK;
|
|
328017
|
-
}
|
|
328018
|
-
instanceApiObject(template) {
|
|
328019
|
-
return new FirestartrGithubOrganizationVariableSection(this, template.metadata.name, template);
|
|
328020
|
-
}
|
|
328021
|
-
}
|
|
328022
|
-
|
|
328023
327649
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/charts/github/index.ts
|
|
328024
327650
|
|
|
328025
327651
|
|
|
@@ -328027,7 +327653,6 @@ class GithubOrgVariableSectionChart extends BaseGithubChart {
|
|
|
328027
327653
|
|
|
328028
327654
|
|
|
328029
327655
|
|
|
328030
|
-
|
|
328031
327656
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/charts/catalog/base.ts
|
|
328032
327657
|
|
|
328033
327658
|
class BaseCatalogChart extends BaseChart {
|
|
@@ -328775,7 +328400,6 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
328775
328400
|
SecretsChart: SecretsChart,
|
|
328776
328401
|
GithubOrgWebhookChart: GithubOrgWebhookChart,
|
|
328777
328402
|
GithubOrgSettingsChart: GithubOrgSettingsChart,
|
|
328778
|
-
GithubOrgVariableSectionChart: GithubOrgVariableSectionChart,
|
|
328779
328403
|
});
|
|
328780
328404
|
|
|
328781
328405
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/renderer/claims-render.ts
|
|
@@ -328820,24 +328444,13 @@ async function renderClaims(catalogScope, firestartrScope, data) {
|
|
|
328820
328444
|
if (configuredProvider !== AllowedProviders.all.toString()) {
|
|
328821
328445
|
providers = providers.filter((provider) => provider === configuredProvider);
|
|
328822
328446
|
}
|
|
328823
|
-
const
|
|
328824
|
-
? 'FirestartrGithubOrganizationSettings'
|
|
328825
|
-
: undefined;
|
|
328826
|
-
const previousCR = getPreviousCRfromClaim(claim, crs, expectedKind);
|
|
328827
|
-
let variableSectionPreviousCR = undefined;
|
|
328828
|
-
if (claim.kind === 'OrgSettingsClaim') {
|
|
328829
|
-
variableSectionPreviousCR = getPreviousCRfromClaim(claim, crs, 'FirestartrGithubOrganizationVariableSection');
|
|
328830
|
-
}
|
|
328447
|
+
const previousCR = getPreviousCRfromClaim(claim, crs);
|
|
328831
328448
|
const patches = await extractPatches(renderClaims[claimKey], previousCR);
|
|
328832
|
-
let variableSectionPatches = undefined;
|
|
328833
|
-
if (claim.kind === 'OrgSettingsClaim') {
|
|
328834
|
-
variableSectionPatches = await extractPatches(renderClaims[claimKey], variableSectionPreviousCR);
|
|
328835
|
-
}
|
|
328836
328449
|
if (!previousCR) {
|
|
328837
328450
|
logger.debug(`No CR found for claim ${claimKey}, it will be rendered from scratch`);
|
|
328838
328451
|
}
|
|
328839
328452
|
const claimPath = renderClaims[claimKey].claimPath;
|
|
328840
|
-
const { firestartrEntity, extraCharts, catalogEntity } = await renderClaim(catalogScope, firestartrScope, claim, patches, previousCR, claimPath
|
|
328453
|
+
const { firestartrEntity, extraCharts, catalogEntity } = await renderClaim(catalogScope, firestartrScope, claim, patches, previousCR, claimPath);
|
|
328841
328454
|
if (catalogEntity) {
|
|
328842
328455
|
result[`${catalogEntity.kind}-${catalogEntity.metadata.name}`] =
|
|
328843
328456
|
catalogEntity.toJson();
|
|
@@ -328866,7 +328479,7 @@ async function renderClaims(catalogScope, firestartrScope, data) {
|
|
|
328866
328479
|
}
|
|
328867
328480
|
return result;
|
|
328868
328481
|
}
|
|
328869
|
-
async function renderClaim(catalogScope, firestartrScope, claim, patches, previousCR = null, claimPath
|
|
328482
|
+
async function renderClaim(catalogScope, firestartrScope, claim, patches, previousCR = null, claimPath) {
|
|
328870
328483
|
let catalogEntity = undefined;
|
|
328871
328484
|
let firestartrEntity = undefined;
|
|
328872
328485
|
const extraCharts = [];
|
|
@@ -329014,25 +328627,6 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
329014
328627
|
case 'OrgSettingsClaim':
|
|
329015
328628
|
if (loadGithub) {
|
|
329016
328629
|
firestartrEntity = new charts.GithubOrgSettingsChart(firestartrScope, `github-${chartId}`, firestartrId, claim, renderPatches);
|
|
329017
|
-
const variableSectionFirestartrId = firestartrId
|
|
329018
|
-
? `${firestartrId}-variables`
|
|
329019
|
-
: null;
|
|
329020
|
-
const vsRenderPatches = variableSectionPatches
|
|
329021
|
-
? variableSectionPatches.filter((patch) => !patch.isPostPatch)
|
|
329022
|
-
: renderPatches;
|
|
329023
|
-
const vsPostPatches = variableSectionPatches
|
|
329024
|
-
? variableSectionPatches.filter((patch) => patch.isPostPatch)
|
|
329025
|
-
: postPatches;
|
|
329026
|
-
const variableSectionChart = new charts.GithubOrgVariableSectionChart(firestartrScope, `github-variables-${chartId}`, variableSectionFirestartrId, claim, vsRenderPatches);
|
|
329027
|
-
await variableSectionChart.render();
|
|
329028
|
-
const variableSectionObject = await variableSectionChart.postRenderer(vsPostPatches);
|
|
329029
|
-
extraCharts.push({
|
|
329030
|
-
claim: {
|
|
329031
|
-
kind: claim.kind,
|
|
329032
|
-
name: `${claim.name}-variable-section`,
|
|
329033
|
-
},
|
|
329034
|
-
chart: variableSectionObject,
|
|
329035
|
-
});
|
|
329036
328630
|
}
|
|
329037
328631
|
break;
|
|
329038
328632
|
default:
|
|
@@ -329197,87 +328791,6 @@ function validateGithubOrgSettingsSingleton(crs) {
|
|
|
329197
328791
|
}
|
|
329198
328792
|
}
|
|
329199
328793
|
|
|
329200
|
-
;// CONCATENATED MODULE: ../cdk8s_renderer/src/validations/githubOrgVariableSection.ts
|
|
329201
|
-
const GITHUB_ORG_VARIABLE_SECTION_KIND = 'FirestartrGithubOrganizationVariableSection';
|
|
329202
|
-
const githubOrgVariableSection_FIRESTARTR_CLAIM_REF_ANNOTATION = 'firestartr.dev/claim-ref';
|
|
329203
|
-
const githubOrgVariableSection_CLAIM_REF_LABEL = 'claim-ref';
|
|
329204
|
-
const COMPONENT_REF_PATTERN = /^component:(.+)$/;
|
|
329205
|
-
function githubOrgVariableSection_formatResourceRef(name, claimRef) {
|
|
329206
|
-
return claimRef ? `${name} (claim: ${claimRef})` : name;
|
|
329207
|
-
}
|
|
329208
|
-
function validateGithubOrgVariableSectionSingleton(crs) {
|
|
329209
|
-
const refsByOrg = new Map();
|
|
329210
|
-
for (const crKey of Object.keys(crs)) {
|
|
329211
|
-
const cr = crs[crKey];
|
|
329212
|
-
if (cr.kind !== GITHUB_ORG_VARIABLE_SECTION_KIND)
|
|
329213
|
-
continue;
|
|
329214
|
-
const org = cr.spec?.org;
|
|
329215
|
-
if (typeof org !== 'string' || !org)
|
|
329216
|
-
continue;
|
|
329217
|
-
const name = cr.metadata?.name || crKey;
|
|
329218
|
-
const claimRef = cr.metadata?.annotations?.[githubOrgVariableSection_FIRESTARTR_CLAIM_REF_ANNOTATION] ||
|
|
329219
|
-
cr.metadata?.labels?.[githubOrgVariableSection_CLAIM_REF_LABEL];
|
|
329220
|
-
const normalizedOrg = org.toLowerCase();
|
|
329221
|
-
const refs = refsByOrg.get(normalizedOrg) || [];
|
|
329222
|
-
refs.push(githubOrgVariableSection_formatResourceRef(name, claimRef));
|
|
329223
|
-
refsByOrg.set(normalizedOrg, refs);
|
|
329224
|
-
}
|
|
329225
|
-
for (const [org, refs] of refsByOrg.entries()) {
|
|
329226
|
-
if (refs.length < 2)
|
|
329227
|
-
continue;
|
|
329228
|
-
throw new Error(`Duplicate ${GITHUB_ORG_VARIABLE_SECTION_KIND} resources found for GitHub organization "${org}": ${refs.join(', ')}`);
|
|
329229
|
-
}
|
|
329230
|
-
}
|
|
329231
|
-
function validateActionsVariablesUniqueness(crs) {
|
|
329232
|
-
for (const crKey of Object.keys(crs)) {
|
|
329233
|
-
const cr = crs[crKey];
|
|
329234
|
-
if (cr.kind !== GITHUB_ORG_VARIABLE_SECTION_KIND)
|
|
329235
|
-
continue;
|
|
329236
|
-
const actionsVariables = cr.spec?.actionsVariables;
|
|
329237
|
-
if (!Array.isArray(actionsVariables))
|
|
329238
|
-
continue;
|
|
329239
|
-
const names = new Set();
|
|
329240
|
-
for (const variable of actionsVariables) {
|
|
329241
|
-
const varName = variable?.name;
|
|
329242
|
-
if (!varName)
|
|
329243
|
-
continue;
|
|
329244
|
-
if (names.has(varName)) {
|
|
329245
|
-
const org = cr.spec?.org || 'unknown';
|
|
329246
|
-
throw new Error(`Duplicate action variable name "${varName}" found in ${GITHUB_ORG_VARIABLE_SECTION_KIND} for organization "${org}"`);
|
|
329247
|
-
}
|
|
329248
|
-
names.add(varName);
|
|
329249
|
-
}
|
|
329250
|
-
}
|
|
329251
|
-
}
|
|
329252
|
-
function validateActionsVariablesSelectedRepositories(renderClaims) {
|
|
329253
|
-
for (const claimKey of Object.keys(renderClaims)) {
|
|
329254
|
-
if (!claimKey.startsWith('OrgSettingsClaim-'))
|
|
329255
|
-
continue;
|
|
329256
|
-
const claimData = renderClaims[claimKey];
|
|
329257
|
-
const claim = claimData?.claim;
|
|
329258
|
-
const actionsVariables = claim?.providers?.github?.actions_variables;
|
|
329259
|
-
if (!Array.isArray(actionsVariables))
|
|
329260
|
-
continue;
|
|
329261
|
-
for (const variable of actionsVariables) {
|
|
329262
|
-
if (variable.visibility !== 'selected')
|
|
329263
|
-
continue;
|
|
329264
|
-
const selectedRepos = variable.selected_repositories;
|
|
329265
|
-
if (!Array.isArray(selectedRepos) || selectedRepos.length === 0)
|
|
329266
|
-
continue;
|
|
329267
|
-
for (const ref of selectedRepos) {
|
|
329268
|
-
const match = ref.match(COMPONENT_REF_PATTERN);
|
|
329269
|
-
if (!match)
|
|
329270
|
-
continue;
|
|
329271
|
-
const componentName = match[1];
|
|
329272
|
-
const expectedKey = `ComponentClaim-${componentName}`;
|
|
329273
|
-
if (!renderClaims[expectedKey]) {
|
|
329274
|
-
throw new Error(`CrossReference error: OrgSettingsClaim/${claim.name} references a non-existent component "${componentName}" in actions_variables.${variable.name}.selected_repositories`);
|
|
329275
|
-
}
|
|
329276
|
-
}
|
|
329277
|
-
}
|
|
329278
|
-
}
|
|
329279
|
-
}
|
|
329280
|
-
|
|
329281
328794
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/renderer/renderer.ts
|
|
329282
328795
|
|
|
329283
328796
|
|
|
@@ -329288,7 +328801,6 @@ function validateActionsVariablesSelectedRepositories(renderClaims) {
|
|
|
329288
328801
|
|
|
329289
328802
|
|
|
329290
328803
|
|
|
329291
|
-
|
|
329292
328804
|
/*
|
|
329293
328805
|
* Function called when rendering but not importing
|
|
329294
328806
|
*
|
|
@@ -329310,11 +328822,8 @@ async function renderer_render(catalogScope, firestartrScope, claimList) {
|
|
|
329310
328822
|
try {
|
|
329311
328823
|
validateSubReferences(data.renderClaims);
|
|
329312
328824
|
validateComponentPagesPath(data.renderClaims);
|
|
329313
|
-
validateActionsVariablesSelectedRepositories(data.renderClaims);
|
|
329314
328825
|
validateTfStateKeyUniqueness(result);
|
|
329315
328826
|
validateGithubOrgSettingsSingleton(fullCrSet);
|
|
329316
|
-
validateGithubOrgVariableSectionSingleton(result);
|
|
329317
|
-
validateActionsVariablesUniqueness(result);
|
|
329318
328827
|
validateCrSizes(result);
|
|
329319
328828
|
validatePermissionsUniqueness(result);
|
|
329320
328829
|
}
|
|
@@ -522624,9 +522133,9 @@ const crsStatusSubcommand = {
|
|
|
522624
522133
|
};
|
|
522625
522134
|
|
|
522626
522135
|
;// CONCATENATED MODULE: ./package.json
|
|
522627
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.9.0-snapshot-org-variables-section-
|
|
522136
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.9.0-snapshot-org-variables-section-5"}');
|
|
522628
522137
|
;// CONCATENATED MODULE: ../../package.json
|
|
522629
|
-
const package_namespaceObject_1 = {"i8":"2.
|
|
522138
|
+
const package_namespaceObject_1 = {"i8":"2.9.0"};
|
|
522630
522139
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
522631
522140
|
|
|
522632
522141
|
|
|
@@ -903,268 +903,6 @@ export declare enum FirestartrGithubOrganizationSettingsSpecContextProviderRefKi
|
|
|
903
903
|
/** FirestartrProviderConfig */
|
|
904
904
|
FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
|
|
905
905
|
}
|
|
906
|
-
/**
|
|
907
|
-
* A resource to handle GitHub Organization Actions Variables.
|
|
908
|
-
*
|
|
909
|
-
* @schema FirestartrGithubOrganizationVariableSection
|
|
910
|
-
*/
|
|
911
|
-
export declare class FirestartrGithubOrganizationVariableSection extends ApiObject {
|
|
912
|
-
/**
|
|
913
|
-
* Returns the apiVersion and kind for "FirestartrGithubOrganizationVariableSection"
|
|
914
|
-
*/
|
|
915
|
-
static readonly GVK: GroupVersionKind;
|
|
916
|
-
/**
|
|
917
|
-
* Renders a Kubernetes manifest for "FirestartrGithubOrganizationVariableSection".
|
|
918
|
-
*
|
|
919
|
-
* This can be used to inline resource manifests inside other objects (e.g. as templates).
|
|
920
|
-
*
|
|
921
|
-
* @param props initialization props
|
|
922
|
-
*/
|
|
923
|
-
static manifest(props: FirestartrGithubOrganizationVariableSectionProps): any;
|
|
924
|
-
/**
|
|
925
|
-
* Defines a "FirestartrGithubOrganizationVariableSection" API object
|
|
926
|
-
* @param scope the scope in which to define this object
|
|
927
|
-
* @param id a scope-local name for the object
|
|
928
|
-
* @param props initialization props
|
|
929
|
-
*/
|
|
930
|
-
constructor(scope: Construct, id: string, props: FirestartrGithubOrganizationVariableSectionProps);
|
|
931
|
-
/**
|
|
932
|
-
* Renders the object to Kubernetes JSON.
|
|
933
|
-
*/
|
|
934
|
-
toJson(): any;
|
|
935
|
-
}
|
|
936
|
-
/**
|
|
937
|
-
* A resource to handle GitHub Organization Actions Variables.
|
|
938
|
-
*
|
|
939
|
-
* @schema FirestartrGithubOrganizationVariableSection
|
|
940
|
-
*/
|
|
941
|
-
export interface FirestartrGithubOrganizationVariableSectionProps {
|
|
942
|
-
/**
|
|
943
|
-
* @schema FirestartrGithubOrganizationVariableSection#metadata
|
|
944
|
-
*/
|
|
945
|
-
readonly metadata: ApiObjectMetadata;
|
|
946
|
-
/**
|
|
947
|
-
* @schema FirestartrGithubOrganizationVariableSection#spec
|
|
948
|
-
*/
|
|
949
|
-
readonly spec: FirestartrGithubOrganizationVariableSectionSpec;
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionProps' to JSON representation.
|
|
953
|
-
*/
|
|
954
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionProps(obj: FirestartrGithubOrganizationVariableSectionProps | undefined): Record<string, any> | undefined;
|
|
955
|
-
/**
|
|
956
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec
|
|
957
|
-
*/
|
|
958
|
-
export interface FirestartrGithubOrganizationVariableSectionSpec {
|
|
959
|
-
/**
|
|
960
|
-
* GitHub organization targeted by this resource
|
|
961
|
-
*
|
|
962
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec#org
|
|
963
|
-
*/
|
|
964
|
-
readonly org: string;
|
|
965
|
-
/**
|
|
966
|
-
* GitHub Actions organization-level variables
|
|
967
|
-
*
|
|
968
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec#actionsVariables
|
|
969
|
-
*/
|
|
970
|
-
readonly actionsVariables?: FirestartrGithubOrganizationVariableSectionSpecActionsVariables[];
|
|
971
|
-
/**
|
|
972
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec#context
|
|
973
|
-
*/
|
|
974
|
-
readonly context: FirestartrGithubOrganizationVariableSectionSpecContext;
|
|
975
|
-
/**
|
|
976
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec#firestartr
|
|
977
|
-
*/
|
|
978
|
-
readonly firestartr: FirestartrGithubOrganizationVariableSectionSpecFirestartr;
|
|
979
|
-
/**
|
|
980
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpec#writeConnectionSecretToRef
|
|
981
|
-
*/
|
|
982
|
-
readonly writeConnectionSecretToRef: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef;
|
|
983
|
-
}
|
|
984
|
-
/**
|
|
985
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpec' to JSON representation.
|
|
986
|
-
*/
|
|
987
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpec(obj: FirestartrGithubOrganizationVariableSectionSpec | undefined): Record<string, any> | undefined;
|
|
988
|
-
/**
|
|
989
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables
|
|
990
|
-
*/
|
|
991
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecActionsVariables {
|
|
992
|
-
/**
|
|
993
|
-
* Variable name matching GitHub Actions naming rules
|
|
994
|
-
*
|
|
995
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#name
|
|
996
|
-
*/
|
|
997
|
-
readonly name: string;
|
|
998
|
-
/**
|
|
999
|
-
* Variable value
|
|
1000
|
-
*
|
|
1001
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#value
|
|
1002
|
-
*/
|
|
1003
|
-
readonly value: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* Visibility of the variable
|
|
1006
|
-
*
|
|
1007
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#visibility
|
|
1008
|
-
*/
|
|
1009
|
-
readonly visibility: FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility;
|
|
1010
|
-
/**
|
|
1011
|
-
* Repository names in org/repo format
|
|
1012
|
-
*
|
|
1013
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#selectedRepositories
|
|
1014
|
-
*/
|
|
1015
|
-
readonly selectedRepositories?: string[];
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecActionsVariables' to JSON representation.
|
|
1019
|
-
*/
|
|
1020
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecActionsVariables(obj: FirestartrGithubOrganizationVariableSectionSpecActionsVariables | undefined): Record<string, any> | undefined;
|
|
1021
|
-
/**
|
|
1022
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContext
|
|
1023
|
-
*/
|
|
1024
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecContext {
|
|
1025
|
-
/**
|
|
1026
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContext#backend
|
|
1027
|
-
*/
|
|
1028
|
-
readonly backend: FirestartrGithubOrganizationVariableSectionSpecContextBackend;
|
|
1029
|
-
/**
|
|
1030
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContext#provider
|
|
1031
|
-
*/
|
|
1032
|
-
readonly provider: FirestartrGithubOrganizationVariableSectionSpecContextProvider;
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContext' to JSON representation.
|
|
1036
|
-
*/
|
|
1037
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContext(obj: FirestartrGithubOrganizationVariableSectionSpecContext | undefined): Record<string, any> | undefined;
|
|
1038
|
-
/**
|
|
1039
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecFirestartr
|
|
1040
|
-
*/
|
|
1041
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecFirestartr {
|
|
1042
|
-
/**
|
|
1043
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecFirestartr#tfStateKey
|
|
1044
|
-
*/
|
|
1045
|
-
readonly tfStateKey: string;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecFirestartr' to JSON representation.
|
|
1049
|
-
*/
|
|
1050
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecFirestartr(obj: FirestartrGithubOrganizationVariableSectionSpecFirestartr | undefined): Record<string, any> | undefined;
|
|
1051
|
-
/**
|
|
1052
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef
|
|
1053
|
-
*/
|
|
1054
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef {
|
|
1055
|
-
/**
|
|
1056
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef#name
|
|
1057
|
-
*/
|
|
1058
|
-
readonly name: string;
|
|
1059
|
-
/**
|
|
1060
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef#outputs
|
|
1061
|
-
*/
|
|
1062
|
-
readonly outputs: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs[];
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef' to JSON representation.
|
|
1066
|
-
*/
|
|
1067
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef(obj: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef | undefined): Record<string, any> | undefined;
|
|
1068
|
-
/**
|
|
1069
|
-
* Visibility of the variable
|
|
1070
|
-
*
|
|
1071
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility
|
|
1072
|
-
*/
|
|
1073
|
-
export declare enum FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility {
|
|
1074
|
-
/** all */
|
|
1075
|
-
ALL = "all",
|
|
1076
|
-
/** private */
|
|
1077
|
-
PRIVATE = "private",
|
|
1078
|
-
/** selected */
|
|
1079
|
-
SELECTED = "selected"
|
|
1080
|
-
}
|
|
1081
|
-
/**
|
|
1082
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackend
|
|
1083
|
-
*/
|
|
1084
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecContextBackend {
|
|
1085
|
-
/**
|
|
1086
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackend#ref
|
|
1087
|
-
*/
|
|
1088
|
-
readonly ref: FirestartrGithubOrganizationVariableSectionSpecContextBackendRef;
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackend' to JSON representation.
|
|
1092
|
-
*/
|
|
1093
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackend(obj: FirestartrGithubOrganizationVariableSectionSpecContextBackend | undefined): Record<string, any> | undefined;
|
|
1094
|
-
/**
|
|
1095
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProvider
|
|
1096
|
-
*/
|
|
1097
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecContextProvider {
|
|
1098
|
-
/**
|
|
1099
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProvider#ref
|
|
1100
|
-
*/
|
|
1101
|
-
readonly ref: FirestartrGithubOrganizationVariableSectionSpecContextProviderRef;
|
|
1102
|
-
}
|
|
1103
|
-
/**
|
|
1104
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProvider' to JSON representation.
|
|
1105
|
-
*/
|
|
1106
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProvider(obj: FirestartrGithubOrganizationVariableSectionSpecContextProvider | undefined): Record<string, any> | undefined;
|
|
1107
|
-
/**
|
|
1108
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs
|
|
1109
|
-
*/
|
|
1110
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs {
|
|
1111
|
-
/**
|
|
1112
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs#key
|
|
1113
|
-
*/
|
|
1114
|
-
readonly key: string;
|
|
1115
|
-
}
|
|
1116
|
-
/**
|
|
1117
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs' to JSON representation.
|
|
1118
|
-
*/
|
|
1119
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs(obj: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs | undefined): Record<string, any> | undefined;
|
|
1120
|
-
/**
|
|
1121
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef
|
|
1122
|
-
*/
|
|
1123
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecContextBackendRef {
|
|
1124
|
-
/**
|
|
1125
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef#kind
|
|
1126
|
-
*/
|
|
1127
|
-
readonly kind: FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind;
|
|
1128
|
-
/**
|
|
1129
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef#name
|
|
1130
|
-
*/
|
|
1131
|
-
readonly name: string;
|
|
1132
|
-
}
|
|
1133
|
-
/**
|
|
1134
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackendRef' to JSON representation.
|
|
1135
|
-
*/
|
|
1136
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackendRef(obj: FirestartrGithubOrganizationVariableSectionSpecContextBackendRef | undefined): Record<string, any> | undefined;
|
|
1137
|
-
/**
|
|
1138
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef
|
|
1139
|
-
*/
|
|
1140
|
-
export interface FirestartrGithubOrganizationVariableSectionSpecContextProviderRef {
|
|
1141
|
-
/**
|
|
1142
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef#kind
|
|
1143
|
-
*/
|
|
1144
|
-
readonly kind: FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind;
|
|
1145
|
-
/**
|
|
1146
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef#name
|
|
1147
|
-
*/
|
|
1148
|
-
readonly name: string;
|
|
1149
|
-
}
|
|
1150
|
-
/**
|
|
1151
|
-
* Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProviderRef' to JSON representation.
|
|
1152
|
-
*/
|
|
1153
|
-
export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProviderRef(obj: FirestartrGithubOrganizationVariableSectionSpecContextProviderRef | undefined): Record<string, any> | undefined;
|
|
1154
|
-
/**
|
|
1155
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind
|
|
1156
|
-
*/
|
|
1157
|
-
export declare enum FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind {
|
|
1158
|
-
/** FirestartrProviderConfig */
|
|
1159
|
-
FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
|
|
1160
|
-
}
|
|
1161
|
-
/**
|
|
1162
|
-
* @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind
|
|
1163
|
-
*/
|
|
1164
|
-
export declare enum FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind {
|
|
1165
|
-
/** FirestartrProviderConfig */
|
|
1166
|
-
FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
|
|
1167
|
-
}
|
|
1168
906
|
/**
|
|
1169
907
|
* A resource to handle GitHub Organization Webhooks
|
|
1170
908
|
*
|
|
@@ -3,4 +3,3 @@ export { GithubMembershipChart } from './membershipChart';
|
|
|
3
3
|
export { GithubRepositoryChart } from './repositoryChart';
|
|
4
4
|
export { GithubOrgWebhookChart } from './orgWebhookChart';
|
|
5
5
|
export { GithubOrgSettingsChart } from './orgSettingsChart';
|
|
6
|
-
export { GithubOrgVariableSectionChart } from './orgVariableSectionChart';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart
|
|
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';
|
|
@@ -22,6 +22,5 @@ declare const _default: {
|
|
|
22
22
|
SecretsChart: typeof SecretsChart;
|
|
23
23
|
GithubOrgWebhookChart: typeof GithubOrgWebhookChart;
|
|
24
24
|
GithubOrgSettingsChart: typeof GithubOrgSettingsChart;
|
|
25
|
-
GithubOrgVariableSectionChart: typeof GithubOrgVariableSectionChart;
|
|
26
25
|
};
|
|
27
26
|
export default _default;
|
|
@@ -974,52 +974,6 @@ declare const schemas: {
|
|
|
974
974
|
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
975
975
|
type: string;
|
|
976
976
|
};
|
|
977
|
-
actions_variables: {
|
|
978
|
-
type: string;
|
|
979
|
-
items: {
|
|
980
|
-
type: string;
|
|
981
|
-
properties: {
|
|
982
|
-
name: {
|
|
983
|
-
type: string;
|
|
984
|
-
pattern: string;
|
|
985
|
-
};
|
|
986
|
-
value: {
|
|
987
|
-
type: string;
|
|
988
|
-
};
|
|
989
|
-
visibility: {
|
|
990
|
-
type: string;
|
|
991
|
-
enum: string[];
|
|
992
|
-
};
|
|
993
|
-
selected_repositories: {
|
|
994
|
-
type: string;
|
|
995
|
-
items: {
|
|
996
|
-
$ref: string;
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
};
|
|
1000
|
-
required: string[];
|
|
1001
|
-
additionalProperties: boolean;
|
|
1002
|
-
allOf: {
|
|
1003
|
-
if: {
|
|
1004
|
-
properties: {
|
|
1005
|
-
visibility: {
|
|
1006
|
-
const: string;
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
required: string[];
|
|
1010
|
-
};
|
|
1011
|
-
then: {};
|
|
1012
|
-
else: {
|
|
1013
|
-
properties: {
|
|
1014
|
-
selected_repositories: {
|
|
1015
|
-
type: string;
|
|
1016
|
-
maxItems: number;
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
};
|
|
1020
|
-
}[];
|
|
1021
|
-
};
|
|
1022
|
-
};
|
|
1023
977
|
};
|
|
1024
978
|
additionalProperties: boolean;
|
|
1025
979
|
required: string[];
|
|
@@ -505,52 +505,6 @@ export declare const GithubSchemas: ({
|
|
|
505
505
|
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
506
506
|
type: string;
|
|
507
507
|
};
|
|
508
|
-
actions_variables: {
|
|
509
|
-
type: string;
|
|
510
|
-
items: {
|
|
511
|
-
type: string;
|
|
512
|
-
properties: {
|
|
513
|
-
name: {
|
|
514
|
-
type: string;
|
|
515
|
-
pattern: string;
|
|
516
|
-
};
|
|
517
|
-
value: {
|
|
518
|
-
type: string;
|
|
519
|
-
};
|
|
520
|
-
visibility: {
|
|
521
|
-
type: string;
|
|
522
|
-
enum: string[];
|
|
523
|
-
};
|
|
524
|
-
selected_repositories: {
|
|
525
|
-
type: string;
|
|
526
|
-
items: {
|
|
527
|
-
$ref: string;
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
required: string[];
|
|
532
|
-
additionalProperties: boolean;
|
|
533
|
-
allOf: {
|
|
534
|
-
if: {
|
|
535
|
-
properties: {
|
|
536
|
-
visibility: {
|
|
537
|
-
const: string;
|
|
538
|
-
};
|
|
539
|
-
};
|
|
540
|
-
required: string[];
|
|
541
|
-
};
|
|
542
|
-
then: {};
|
|
543
|
-
else: {
|
|
544
|
-
properties: {
|
|
545
|
-
selected_repositories: {
|
|
546
|
-
type: string;
|
|
547
|
-
maxItems: number;
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
};
|
|
551
|
-
}[];
|
|
552
|
-
};
|
|
553
|
-
};
|
|
554
508
|
};
|
|
555
509
|
additionalProperties: boolean;
|
|
556
510
|
required: string[];
|
|
@@ -29,12 +29,6 @@ export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
|
|
|
29
29
|
dependency_graph_enabled_for_new_repositories?: boolean;
|
|
30
30
|
secret_scanning_enabled_for_new_repositories?: boolean;
|
|
31
31
|
secret_scanning_push_protection_enabled_for_new_repositories?: boolean;
|
|
32
|
-
actions_variables?: {
|
|
33
|
-
name: string;
|
|
34
|
-
value: string;
|
|
35
|
-
visibility: 'all' | 'private' | 'selected';
|
|
36
|
-
selected_repositories?: string[];
|
|
37
|
-
}[];
|
|
38
32
|
};
|
|
39
33
|
};
|
|
40
34
|
}
|
|
@@ -100,52 +100,6 @@ declare const _default: {
|
|
|
100
100
|
secret_scanning_push_protection_enabled_for_new_repositories: {
|
|
101
101
|
type: string;
|
|
102
102
|
};
|
|
103
|
-
actions_variables: {
|
|
104
|
-
type: string;
|
|
105
|
-
items: {
|
|
106
|
-
type: string;
|
|
107
|
-
properties: {
|
|
108
|
-
name: {
|
|
109
|
-
type: string;
|
|
110
|
-
pattern: string;
|
|
111
|
-
};
|
|
112
|
-
value: {
|
|
113
|
-
type: string;
|
|
114
|
-
};
|
|
115
|
-
visibility: {
|
|
116
|
-
type: string;
|
|
117
|
-
enum: string[];
|
|
118
|
-
};
|
|
119
|
-
selected_repositories: {
|
|
120
|
-
type: string;
|
|
121
|
-
items: {
|
|
122
|
-
$ref: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
required: string[];
|
|
127
|
-
additionalProperties: boolean;
|
|
128
|
-
allOf: {
|
|
129
|
-
if: {
|
|
130
|
-
properties: {
|
|
131
|
-
visibility: {
|
|
132
|
-
const: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
required: string[];
|
|
136
|
-
};
|
|
137
|
-
then: {};
|
|
138
|
-
else: {
|
|
139
|
-
properties: {
|
|
140
|
-
selected_repositories: {
|
|
141
|
-
type: string;
|
|
142
|
-
maxItems: number;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
}[];
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
103
|
};
|
|
150
104
|
additionalProperties: boolean;
|
|
151
105
|
required: string[];
|
|
@@ -8,5 +8,5 @@ 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, claimPath?: string
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getPreviousCRfromClaim(claim: any, previousCRs: any
|
|
1
|
+
export declare function getPreviousCRfromClaim(claim: any, previousCRs: any): any;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FirestartrGithubOrganizationVariableSection, FirestartrGithubOrganizationVariableSectionProps } from '../../../imports/firestartr.dev';
|
|
2
|
-
import { IUnitializedStateKey } from '../../claims/base';
|
|
3
|
-
import { BaseGithubChart } from './base';
|
|
4
|
-
export declare class GithubOrgVariableSectionChart extends BaseGithubChart {
|
|
5
|
-
template(): FirestartrGithubOrganizationVariableSectionProps | IUnitializedStateKey;
|
|
6
|
-
gvk(): import("cdk8s").GroupVersionKind;
|
|
7
|
-
instanceApiObject(template: any): FirestartrGithubOrganizationVariableSection;
|
|
8
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { RenderClaims, RenderedCrMap } from '../renderer/types';
|
|
2
|
-
export declare function validateGithubOrgVariableSectionSingleton(crs: RenderedCrMap): void;
|
|
3
|
-
export declare function validateActionsVariablesUniqueness(crs: RenderedCrMap): void;
|
|
4
|
-
export declare function validateActionsVariablesSelectedRepositories(renderClaims: RenderClaims): void;
|