@firestartr/cli 2.10.0 → 2.11.0-snapshot-feat-format
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 +899 -212
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +262 -0
- package/build/packages/cdk8s_renderer/src/charts/github/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/charts/github/orgVariableSectionChart.d.ts +8 -0
- package/build/packages/cdk8s_renderer/src/charts/index.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +46 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +46 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgSettings.d.ts +6 -0
- package/build/packages/cdk8s_renderer/src/claims/github/orgsettings.schema.d.ts +46 -0
- 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/build/packages/cdk8s_renderer/src/validations/githubOrgVariableSection.d.ts +3 -0
- package/build/packages/features_renderer/index.d.ts +2 -0
- package/build/packages/features_renderer/src/auxiliar.d.ts +2 -0
- package/build/packages/features_renderer/src/featureArgsValidation.d.ts +14 -0
- package/build/packages/features_renderer/src/schema.d.ts +3 -0
- package/build/packages/gh_provisioner/src/entities/ghorgvarsection/index.d.ts +8 -0
- package/build/packages/github/index.d.ts +1 -0
- package/build/packages/github/src/organization.d.ts +2 -0
- package/build/packages/github/src/with_profile.d.ts +1 -0
- package/package.json +3 -2
|
@@ -903,6 +903,268 @@ 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
|
+
}
|
|
906
1168
|
/**
|
|
907
1169
|
* A resource to handle GitHub Organization Webhooks
|
|
908
1170
|
*
|
|
@@ -3,3 +3,4 @@ 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';
|
|
@@ -0,0 +1,8 @@
|
|
|
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 +1,4 @@
|
|
|
1
|
-
import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart } from './github';
|
|
1
|
+
import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart, GithubOrgVariableSectionChart } 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,5 +22,6 @@ declare const _default: {
|
|
|
22
22
|
SecretsChart: typeof SecretsChart;
|
|
23
23
|
GithubOrgWebhookChart: typeof GithubOrgWebhookChart;
|
|
24
24
|
GithubOrgSettingsChart: typeof GithubOrgSettingsChart;
|
|
25
|
+
GithubOrgVariableSectionChart: typeof GithubOrgVariableSectionChart;
|
|
25
26
|
};
|
|
26
27
|
export default _default;
|
|
@@ -974,6 +974,52 @@ 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
|
+
};
|
|
977
1023
|
};
|
|
978
1024
|
additionalProperties: boolean;
|
|
979
1025
|
required: string[];
|
|
@@ -505,6 +505,52 @@ 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
|
+
};
|
|
508
554
|
};
|
|
509
555
|
additionalProperties: boolean;
|
|
510
556
|
required: string[];
|
|
@@ -29,6 +29,12 @@ 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
|
+
}[];
|
|
32
38
|
};
|
|
33
39
|
};
|
|
34
40
|
}
|
|
@@ -100,6 +100,52 @@ 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
|
+
};
|
|
103
149
|
};
|
|
104
150
|
additionalProperties: boolean;
|
|
105
151
|
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): Promise<IRenderClaimResult>;
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPreviousCR?: any | false, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getPreviousCRfromClaim(claim: any, previousCRs: any): any;
|
|
1
|
+
export declare function getPreviousCRfromClaim(claim: any, previousCRs: any, expectedKind?: string): any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import validate from './src/validate';
|
|
2
2
|
import render, { buildContext, renderContent, expandFiles } from './src/render';
|
|
3
3
|
import updateFileContent from './src/update_file';
|
|
4
|
+
import { validateFeatureArgs } from './src/featureArgsValidation';
|
|
4
5
|
declare const _default: {
|
|
5
6
|
validate: typeof validate;
|
|
6
7
|
render: typeof render;
|
|
@@ -15,5 +16,6 @@ declare const _default: {
|
|
|
15
16
|
buildContext: typeof buildContext;
|
|
16
17
|
renderContent: typeof renderContent;
|
|
17
18
|
expandFiles: typeof expandFiles;
|
|
19
|
+
validateFeatureArgs: typeof validateFeatureArgs;
|
|
18
20
|
};
|
|
19
21
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
|
+
import type { ErrorObject } from 'ajv';
|
|
4
5
|
export interface ConfigFile {
|
|
5
6
|
dest: string;
|
|
6
7
|
src: string;
|
|
@@ -56,6 +57,7 @@ export interface RenderContext {
|
|
|
56
57
|
/** Optional cleanup */
|
|
57
58
|
remove: () => Promise<void>;
|
|
58
59
|
}
|
|
60
|
+
export declare function formatAjvErrors(errors: ErrorObject[] | null | undefined): string;
|
|
59
61
|
declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
|
|
60
62
|
declare function resolveCrPath(featurePath: string, crRelPath: string): string;
|
|
61
63
|
export declare function listYamlFiles(dir: string): string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validates user-supplied feature args against the feature's on-disk
|
|
3
|
+
* `schema.json` (generated by prefapp/features from the feature's config.yaml).
|
|
4
|
+
*
|
|
5
|
+
* The downloader-injected `traceability` key is stripped before validation so it
|
|
6
|
+
* never trips the unknown-key check. `additionalProperties: false` is injected
|
|
7
|
+
* into a shallow copy of the schema before compiling; the on-disk file is never
|
|
8
|
+
* mutated. A feature that ships no schema skips validation with a warning so
|
|
9
|
+
* legacy, `ref`-fetched, and template features keep rendering.
|
|
10
|
+
*
|
|
11
|
+
* @param featurePath - Absolute path to the extracted feature.
|
|
12
|
+
* @param featureArgs - The raw user-supplied feature args.
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateFeatureArgs(featurePath: string, featureArgs: any): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Entity } from '../base';
|
|
2
|
+
export declare class EntityGHOrgVarsSection extends Entity {
|
|
3
|
+
constructor(artifact: any);
|
|
4
|
+
loadResources(tfOp: string): Promise<void>;
|
|
5
|
+
private adoptVariablesIfNeeded;
|
|
6
|
+
postProvision(tfOp: string): Promise<void>;
|
|
7
|
+
loadAddressesToImport(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
getOrgTeamsDirectAccess: typeof import("./src/organization").getOrgTeamsDirectAccess;
|
|
18
18
|
getOrgPlanName: typeof import("./src/organization").getOrgPlanName;
|
|
19
19
|
getWebhookList: typeof import("./src/organization").getWebhookList;
|
|
20
|
+
getOrgVariable: typeof import("./src/organization").getOrgVariable;
|
|
20
21
|
};
|
|
21
22
|
repo: {
|
|
22
23
|
listReleases: typeof import("./src/repository").listReleases;
|
|
@@ -8,6 +8,7 @@ export declare function getWebhookList(org: string, octokit?: any): Promise<any>
|
|
|
8
8
|
export declare function getOrgTeamsDirectAccess(org: string, octokit?: any): Promise<any>;
|
|
9
9
|
export declare function transformGraphQLResponse(response: any): any;
|
|
10
10
|
export declare function getOrgPlanName(org: string, octokit?: any): Promise<any>;
|
|
11
|
+
export declare function getOrgVariable(org: string, variableName: string, octokit?: any): Promise<any>;
|
|
11
12
|
declare const _default: {
|
|
12
13
|
getRepositoryList: typeof getRepositoryList;
|
|
13
14
|
getTeamList: typeof getTeamList;
|
|
@@ -18,5 +19,6 @@ declare const _default: {
|
|
|
18
19
|
getOrgTeamsDirectAccess: typeof getOrgTeamsDirectAccess;
|
|
19
20
|
getOrgPlanName: typeof getOrgPlanName;
|
|
20
21
|
getWebhookList: typeof getWebhookList;
|
|
22
|
+
getOrgVariable: typeof getOrgVariable;
|
|
21
23
|
};
|
|
22
24
|
export default _default;
|
|
@@ -21,6 +21,7 @@ export declare function withProfile(profileName: string): {
|
|
|
21
21
|
getWebhookList: (orgName: string) => Promise<any>;
|
|
22
22
|
getOrgTeamsDirectAccess: (orgName: string) => Promise<any>;
|
|
23
23
|
getOrgPlanName: (orgName: string) => Promise<any>;
|
|
24
|
+
getOrgVariable: (orgName: string, variableName: string) => Promise<any>;
|
|
24
25
|
};
|
|
25
26
|
repo: {
|
|
26
27
|
addStatusCheck: (output: any, isFailure: boolean, headSha: string, name: string, status: string, repoName: string, owner: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firestartr/cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0-snapshot-feat-format",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Commandline tool",
|
|
6
6
|
"main": "build/main.js",
|
|
@@ -23,10 +23,11 @@
|
|
|
23
23
|
"author": "Víctor Rodríguez",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"semver": "^7.
|
|
26
|
+
"semver": "^7.8.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/command-line-args": "^5.2.0",
|
|
30
|
+
"@types/semver": "^7.5.8",
|
|
30
31
|
"catalog_common": "file:../catalog_common",
|
|
31
32
|
"cdk8s_renderer": "file:../cdk8s_renderer",
|
|
32
33
|
"command-line-args": "^5.2.1",
|