@opencrvs/toolkit 2.1.0-rc.30bcbde → 2.1.0-rc.312fbd1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -12
- package/build.sh +12 -4
- package/create-countryconfig/index.js +441 -59
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +362 -284
- package/dist/authentication/index.d.ts +66 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +765 -0
- package/dist/cli.js +3347 -1229
- package/dist/commons/api/router.d.ts +3942 -3310
- package/dist/commons/application-config/index.d.ts +6 -8
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/conditionals/validate.d.ts +34 -8
- package/dist/commons/events/ActionConfig.d.ts +105 -114
- package/dist/commons/events/ActionDocument.d.ts +145 -125
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +549 -513
- package/dist/commons/events/AuditLog.d.ts +190 -42
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +27 -47
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +8 -5
- package/dist/commons/events/EventDocument.d.ts +518 -50
- package/dist/commons/events/EventIndex.d.ts +49 -72
- package/dist/commons/events/EventMetadata.d.ts +39 -49
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +440 -394
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -89
- package/dist/commons/events/FieldValue.d.ts +15 -14
- package/dist/commons/events/Flag.d.ts +57 -15
- package/dist/commons/events/FormConfig.d.ts +6 -0
- package/dist/commons/events/PageConfig.d.ts +4 -0
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +817 -814
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +14 -2
- package/dist/commons/events/field.d.ts +78 -895
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +247 -14
- package/dist/commons/events/mocks.test.utils.d.ts +48 -4
- package/dist/commons/events/scopes.d.ts +25 -5
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +104 -46
- package/dist/commons/events/utils.d.ts +149 -114
- package/dist/commons/notification/UserNotifications.d.ts +38 -23
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +349 -65
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +12 -1
- package/dist/environment/logger.d.ts +15 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +1 -1
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- package/dist/environment/setup-environment.d.ts +1 -1
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +589 -570
- package/dist/environment/templates.d.ts +0 -1
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +5 -9
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +21 -5
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.js +11 -13
- package/dist/environment/utils.d.ts +1 -13
- package/dist/environment/utils.d.ts.map +1 -1
- package/dist/environment/utils.js +1 -28
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +5910 -5301
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +3 -10
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +3 -3
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/v2.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +149 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +455 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -1
- package/dist/migrations/v2.1/index.js +1556 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts +2 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-metabase-package-installs.js +161 -0
- package/dist/migrations/v2.1/remove-sentry.d.ts +3 -0
- package/dist/migrations/v2.1/remove-sentry.d.ts.map +1 -0
- package/dist/migrations/v2.1/remove-sentry.js +354 -0
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts +3 -0
- package/dist/migrations/v2.1/rename-trigger-paths.d.ts.map +1 -0
- package/dist/migrations/v2.1/rename-trigger-paths.js +216 -0
- package/dist/notification/index.js +1904 -1492
- package/dist/scopes/index.d.ts +736 -158
- package/dist/scopes/index.js +351 -65
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +43 -0
- package/dist/templates/charts-values/dependencies/values.yaml +8 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +10 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +102 -0
- package/dist/templates/charts-values/traefik/values.yaml +23 -9
- package/dist/templates/inventory/inventory.template.yml +1 -3
- package/dist/translations/template.d.ts +11 -0
- package/dist/translations/template.d.ts.map +1 -0
- package/dist/translations/template.js +100 -0
- package/dist/verify/endpoints.d.ts +2 -0
- package/dist/verify/endpoints.d.ts.map +1 -0
- package/dist/verify/endpoints.js +510 -0
- package/opencrvs-toolkit-2.1.0-rc.312fbd1.tgz +0 -0
- package/package.json +13 -7
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/dist/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.30bcbde.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,198 +1,199 @@
|
|
|
1
|
+
declare const notEmpty: (value: string | number) => "Please enter a value" | true;
|
|
1
2
|
declare function validateCIDRs(input: string): true | string;
|
|
2
3
|
export declare const dockerhubQuestions: {
|
|
3
4
|
name: string;
|
|
4
|
-
type:
|
|
5
|
+
type: 'text';
|
|
5
6
|
message: string;
|
|
6
|
-
valueType:
|
|
7
|
+
valueType: 'SECRET';
|
|
7
8
|
valueLabel: string;
|
|
8
|
-
validate:
|
|
9
|
+
validate: typeof notEmpty;
|
|
9
10
|
initial: string | undefined;
|
|
10
|
-
scope:
|
|
11
|
+
scope: 'REPOSITORY';
|
|
11
12
|
}[];
|
|
12
13
|
export declare const githubQuestions: {
|
|
13
14
|
name: string;
|
|
14
|
-
type:
|
|
15
|
+
type: 'text';
|
|
15
16
|
message: string;
|
|
16
|
-
validate:
|
|
17
|
+
validate: typeof notEmpty;
|
|
17
18
|
initial: string;
|
|
18
|
-
scope:
|
|
19
|
+
scope: 'REPOSITORY';
|
|
19
20
|
}[];
|
|
20
21
|
export declare const githubOtherQuestions: ({
|
|
21
22
|
name: string;
|
|
22
|
-
type:
|
|
23
|
+
type: 'text';
|
|
23
24
|
message: string;
|
|
24
25
|
initial: string | undefined;
|
|
25
|
-
valueType:
|
|
26
|
+
valueType: 'VARIABLE';
|
|
26
27
|
valueLabel: string;
|
|
27
|
-
scope:
|
|
28
|
+
scope: 'REPOSITORY';
|
|
28
29
|
choices?: undefined;
|
|
29
30
|
validate?: undefined;
|
|
30
31
|
} | {
|
|
31
32
|
name: string;
|
|
32
|
-
type:
|
|
33
|
+
type: 'select';
|
|
33
34
|
message: string;
|
|
34
35
|
choices: {
|
|
35
36
|
title: string;
|
|
36
37
|
value: string;
|
|
37
38
|
}[];
|
|
38
|
-
valueType:
|
|
39
|
-
validate:
|
|
39
|
+
valueType: 'VARIABLE';
|
|
40
|
+
validate: typeof notEmpty;
|
|
40
41
|
valueLabel: string;
|
|
41
42
|
initial: string | undefined;
|
|
42
|
-
scope:
|
|
43
|
+
scope: 'ENVIRONMENT';
|
|
43
44
|
})[];
|
|
44
45
|
export declare const githubTokenQuestion: {
|
|
45
46
|
name: string;
|
|
46
|
-
type:
|
|
47
|
+
type: 'text';
|
|
47
48
|
message: string;
|
|
48
|
-
validate:
|
|
49
|
+
validate: typeof notEmpty;
|
|
49
50
|
initial: string | undefined;
|
|
50
|
-
valueType:
|
|
51
|
-
scope:
|
|
51
|
+
valueType: 'SECRET';
|
|
52
|
+
scope: 'REPOSITORY';
|
|
52
53
|
valueLabel: string;
|
|
53
54
|
}[];
|
|
54
55
|
export declare const countryQuestions: {
|
|
55
56
|
name: string;
|
|
56
|
-
type:
|
|
57
|
+
type: 'text';
|
|
57
58
|
message: string;
|
|
58
|
-
valueType:
|
|
59
|
+
valueType: 'VARIABLE';
|
|
59
60
|
valueLabel: string;
|
|
60
61
|
initial: string | undefined;
|
|
61
|
-
scope:
|
|
62
|
+
scope: 'REPOSITORY';
|
|
62
63
|
}[];
|
|
63
64
|
export declare const infrastructureQuestions: ({
|
|
64
65
|
name: string;
|
|
65
|
-
type:
|
|
66
|
+
type: 'text';
|
|
66
67
|
message: string;
|
|
67
|
-
valueType:
|
|
68
|
-
validate:
|
|
68
|
+
valueType: 'VARIABLE';
|
|
69
|
+
validate: typeof notEmpty;
|
|
69
70
|
valueLabel: string;
|
|
70
71
|
initial: string | undefined;
|
|
71
|
-
scope:
|
|
72
|
+
scope: 'ENVIRONMENT';
|
|
72
73
|
} | {
|
|
74
|
+
validate?: undefined;
|
|
73
75
|
name: string;
|
|
74
|
-
type:
|
|
76
|
+
type: 'text';
|
|
75
77
|
message: string;
|
|
76
|
-
valueType:
|
|
78
|
+
valueType: 'VARIABLE';
|
|
77
79
|
valueLabel: string;
|
|
78
80
|
initial: string | undefined;
|
|
79
|
-
scope:
|
|
80
|
-
validate?: undefined;
|
|
81
|
+
scope: 'ENVIRONMENT';
|
|
81
82
|
} | {
|
|
82
83
|
name: string;
|
|
83
|
-
type:
|
|
84
|
+
type: 'text';
|
|
84
85
|
message: string;
|
|
85
|
-
valueType:
|
|
86
|
+
valueType: 'VARIABLE';
|
|
86
87
|
validate: typeof validateCIDRs;
|
|
87
88
|
valueLabel: string;
|
|
88
89
|
initial: string;
|
|
89
|
-
scope:
|
|
90
|
+
scope: 'ENVIRONMENT';
|
|
90
91
|
})[];
|
|
91
92
|
export declare const staticSSLCertQuestions: {
|
|
92
93
|
name: string;
|
|
93
|
-
type:
|
|
94
|
+
type: 'text';
|
|
94
95
|
message: string;
|
|
95
|
-
valueType:
|
|
96
|
-
validate:
|
|
96
|
+
valueType: 'SECRET';
|
|
97
|
+
validate: typeof notEmpty;
|
|
97
98
|
valueLabel: string;
|
|
98
99
|
initial: string | undefined;
|
|
99
|
-
scope:
|
|
100
|
+
scope: 'ENVIRONMENT';
|
|
100
101
|
}[];
|
|
101
102
|
export declare const backupQuestions: ({
|
|
103
|
+
choices?: undefined;
|
|
104
|
+
validate?: undefined;
|
|
102
105
|
name: string;
|
|
103
|
-
type:
|
|
106
|
+
type: 'text';
|
|
104
107
|
message: string;
|
|
105
|
-
valueType:
|
|
108
|
+
valueType: 'VARIABLE';
|
|
106
109
|
valueLabel: string;
|
|
107
110
|
initial: string;
|
|
108
|
-
scope:
|
|
109
|
-
validate?: undefined;
|
|
110
|
-
choices?: undefined;
|
|
111
|
+
scope: 'ENVIRONMENT';
|
|
111
112
|
} | {
|
|
113
|
+
choices?: undefined;
|
|
112
114
|
name: string;
|
|
113
|
-
type:
|
|
115
|
+
type: 'text';
|
|
114
116
|
message: string;
|
|
115
|
-
valueType:
|
|
116
|
-
validate:
|
|
117
|
+
valueType: 'SECRET';
|
|
118
|
+
validate: typeof notEmpty;
|
|
117
119
|
valueLabel: string;
|
|
118
120
|
initial: string;
|
|
119
|
-
scope:
|
|
120
|
-
choices?: undefined;
|
|
121
|
+
scope: 'ENVIRONMENT';
|
|
121
122
|
} | {
|
|
122
123
|
name: string;
|
|
123
|
-
type:
|
|
124
|
+
type: 'select';
|
|
124
125
|
message: string;
|
|
125
126
|
choices: {
|
|
126
127
|
title: string;
|
|
127
128
|
value: string;
|
|
128
129
|
}[];
|
|
129
|
-
valueType:
|
|
130
|
-
validate:
|
|
130
|
+
valueType: 'VARIABLE';
|
|
131
|
+
validate: typeof notEmpty;
|
|
131
132
|
valueLabel: string;
|
|
132
133
|
initial: string | undefined;
|
|
133
|
-
scope:
|
|
134
|
+
scope: 'ENVIRONMENT';
|
|
134
135
|
})[];
|
|
135
136
|
export declare const diskQuestions: {
|
|
136
137
|
name: string;
|
|
137
|
-
type:
|
|
138
|
+
type: 'text';
|
|
138
139
|
message: string;
|
|
139
|
-
valueType:
|
|
140
|
-
validate:
|
|
140
|
+
valueType: 'VARIABLE';
|
|
141
|
+
validate: typeof notEmpty;
|
|
141
142
|
valueLabel: string;
|
|
142
143
|
initial: string;
|
|
143
|
-
scope:
|
|
144
|
+
scope: 'ENVIRONMENT';
|
|
144
145
|
}[];
|
|
145
146
|
export declare const databaseAndMonitoringQuestions: {
|
|
146
147
|
name: string;
|
|
147
|
-
type:
|
|
148
|
+
type: 'text';
|
|
148
149
|
message: string;
|
|
149
|
-
valueType:
|
|
150
|
-
validate:
|
|
150
|
+
valueType: 'SECRET';
|
|
151
|
+
validate: typeof notEmpty;
|
|
151
152
|
valueLabel: string;
|
|
152
153
|
initial: string;
|
|
153
|
-
scope:
|
|
154
|
+
scope: 'ENVIRONMENT';
|
|
154
155
|
}[];
|
|
155
156
|
export declare const emailQuestions: ({
|
|
157
|
+
choices?: undefined;
|
|
156
158
|
name: string;
|
|
157
|
-
type:
|
|
159
|
+
type: 'text';
|
|
158
160
|
message: string;
|
|
159
|
-
valueType:
|
|
160
|
-
validate:
|
|
161
|
+
valueType: 'SECRET';
|
|
162
|
+
validate: typeof notEmpty;
|
|
161
163
|
valueLabel: string;
|
|
162
164
|
initial: string | undefined;
|
|
163
|
-
scope:
|
|
164
|
-
choices?: undefined;
|
|
165
|
+
scope: 'ENVIRONMENT';
|
|
165
166
|
} | {
|
|
166
167
|
name: string;
|
|
167
|
-
type:
|
|
168
|
+
type: 'select';
|
|
168
169
|
message: string;
|
|
169
170
|
choices: {
|
|
170
171
|
title: string;
|
|
171
172
|
value: string;
|
|
172
173
|
}[];
|
|
173
|
-
valueType:
|
|
174
|
-
validate:
|
|
174
|
+
valueType: 'SECRET';
|
|
175
|
+
validate: typeof notEmpty;
|
|
175
176
|
valueLabel: string;
|
|
176
177
|
initial: string | undefined;
|
|
177
|
-
scope:
|
|
178
|
+
scope: 'ENVIRONMENT';
|
|
178
179
|
})[];
|
|
179
180
|
export declare const sentryQuestions: {
|
|
180
181
|
name: string;
|
|
181
|
-
type:
|
|
182
|
+
type: 'text';
|
|
182
183
|
message: string;
|
|
183
|
-
valueType:
|
|
184
|
-
validate:
|
|
184
|
+
valueType: 'SECRET';
|
|
185
|
+
validate: typeof notEmpty;
|
|
185
186
|
valueLabel: string;
|
|
186
187
|
initial: string | undefined;
|
|
187
|
-
scope:
|
|
188
|
+
scope: 'ENVIRONMENT';
|
|
188
189
|
}[];
|
|
189
190
|
export declare const metabaseAdminQuestions: {
|
|
190
|
-
valueType:
|
|
191
|
+
valueType: 'SECRET';
|
|
191
192
|
name: string;
|
|
192
|
-
type:
|
|
193
|
+
type: 'text';
|
|
193
194
|
message: string;
|
|
194
195
|
valueLabel: string;
|
|
195
|
-
scope:
|
|
196
|
+
scope: 'ENVIRONMENT';
|
|
196
197
|
initial: string;
|
|
197
198
|
}[];
|
|
198
199
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,kCAC4B,CAAA;AAepE,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;AAED,eAAO,MAAM,kBAAkB;;UAGrB,MAAM;;eAED,QAAQ;;;;WAIZ,YAAY;GAiCtB,CAAA;AAED,eAAO,MAAM,eAAe;;UAGlB,MAAM;;;;WAIL,YAAY;GAUtB,CAAA;AACD,eAAO,MAAM,oBAAoB;;UAGvB,MAAM;;;eAGD,UAAU;;WAEd,YAAY;;;;;UAIb,QAAQ;;;;;;eAaH,UAAU;;;;WAId,aAAa;IAEvB,CAAA;AACD,eAAO,MAAM,mBAAmB;;UAGtB,MAAM;;;;eAID,QAAQ;WACZ,YAAY;;GAGtB,CAAA;AAED,eAAO,MAAM,gBAAgB;;UAGnB,MAAM;;eAGD,UAAU;;;WAGd,YAAY;GAEtB,CAAA;AAED,eAAO,MAAM,uBAAuB;;UAG1B,MAAM;;eAED,UAAU;;;;WAId,aAAa;;;;UAId,MAAM;;eAED,UAAU;;;WAGd,aAAa;;;UAsBd,MAAM;;eAED,UAAU;;;;WAId,aAAa;IAEvB,CAAA;AAED,eAAO,MAAM,sBAAsB;;UAGzB,MAAM;;eAED,QAAQ;;;;WAIZ,aAAa;GAYvB,CAAA;AAED,eAAO,MAAM,eAAe;;;;UAGlB,MAAM;;eAED,UAAU;;;WAGd,aAAa;;;;UAId,MAAM;;eAED,QAAQ;;;;WAIZ,aAAa;;;UAId,QAAQ;;;;;;eAYH,UAAU;;;;WAId,aAAa;IAEvB,CAAA;AAED,eAAO,MAAM,aAAa;;UAGhB,MAAM;;eAID,UAAU;;;;WAId,aAAa;GAEvB,CAAA;AAED,eAAO,MAAM,8BAA8B;;UAGjC,MAAM;;eAED,QAAQ;;;;WAIZ,aAAa;GAYvB,CAAA;AAED,eAAO,MAAM,cAAc;;;UAGjB,MAAM;;eAED,QAAQ;;;;WAIZ,aAAa;;;UAkCd,QAAQ;;;;;;eAYH,QAAQ;;;;WAIZ,aAAa;IAuBvB,CAAA;AAED,eAAO,MAAM,eAAe;;UAGlB,MAAM;;eAED,QAAQ;;;;WAIZ,aAAa;GAEvB,CAAA;AAED,eAAO,MAAM,sBAAsB;eAEpB,QAAQ;;UAEb,MAAM;;;WAIL,aAAa;;GAYvB,CAAA"}
|
|
@@ -166,11 +166,28 @@ exports.infrastructureQuestions = [
|
|
|
166
166
|
scope: 'ENVIRONMENT'
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
name: '
|
|
169
|
+
name: 'kubeMasterNode',
|
|
170
170
|
type: 'text',
|
|
171
|
-
message: `Kubernetes
|
|
171
|
+
message: `Kubernetes master node hostnames or IP (default: auto-detect)`,
|
|
172
|
+
valueType: 'VARIABLE',
|
|
173
|
+
valueLabel: 'KUBE_MASTER_NODE',
|
|
174
|
+
initial: process.env.KUBE_MASTER_NODE,
|
|
175
|
+
scope: 'ENVIRONMENT'
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'kubeWorkerNodes',
|
|
179
|
+
type: 'text',
|
|
180
|
+
message: `Kubernetes worker node hostnames or IPs (comma-separated, default: no worker nodes)`,
|
|
181
|
+
valueType: 'VARIABLE',
|
|
182
|
+
valueLabel: 'KUBE_WORKER_NODES',
|
|
183
|
+
initial: process.env.KUBE_WORKER_NODES || '',
|
|
184
|
+
scope: 'ENVIRONMENT'
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
name: 'kubeApiHost',
|
|
188
|
+
type: 'text',
|
|
189
|
+
message: `Kubernetes API endpoint IP (default: KUBE_MASTER_NODE)`,
|
|
172
190
|
valueType: 'VARIABLE',
|
|
173
|
-
// validate: notEmpty,
|
|
174
191
|
valueLabel: 'KUBE_API_HOST',
|
|
175
192
|
initial: process.env.KUBE_API_HOST,
|
|
176
193
|
scope: 'ENVIRONMENT'
|
|
@@ -185,16 +202,6 @@ exports.infrastructureQuestions = [
|
|
|
185
202
|
initial: process.env.KUBE_API_ALLOWED_CIDRS || '',
|
|
186
203
|
scope: 'ENVIRONMENT'
|
|
187
204
|
},
|
|
188
|
-
{
|
|
189
|
-
name: 'kubeWorkerNodes',
|
|
190
|
-
type: 'text',
|
|
191
|
-
message: `Kubernetes worker node hostnames or IPs (comma-separated, default: no worker nodes)`,
|
|
192
|
-
valueType: 'VARIABLE',
|
|
193
|
-
// validate: notEmpty,
|
|
194
|
-
valueLabel: 'KUBE_WORKER_NODES',
|
|
195
|
-
initial: process.env.KUBE_WORKER_NODES || '',
|
|
196
|
-
scope: 'ENVIRONMENT'
|
|
197
|
-
}
|
|
198
205
|
];
|
|
199
206
|
exports.staticSSLCertQuestions = [
|
|
200
207
|
{
|
|
@@ -224,7 +231,6 @@ exports.backupQuestions = [
|
|
|
224
231
|
type: 'text',
|
|
225
232
|
message: `Please enter backup server host/IP address, (default: no backup):`,
|
|
226
233
|
valueType: 'VARIABLE',
|
|
227
|
-
// validate: notEmpty,
|
|
228
234
|
valueLabel: 'BACKUP_HOST',
|
|
229
235
|
initial: process.env.BACKUP_HOST || '',
|
|
230
236
|
scope: 'ENVIRONMENT'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function runSetupEnvironment(): Promise<void>;
|
|
2
2
|
//# sourceMappingURL=setup-environment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-environment.d.ts","sourceRoot":"","sources":["../../src/environment/setup-environment.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"setup-environment.d.ts","sourceRoot":"","sources":["../../src/environment/setup-environment.ts"],"names":[],"mappings":"AAwSA,wBAAsB,mBAAmB,kBAolCxC"}
|