@@ -8,7 +8,8 @@ INIT_CONFIG_PASSWORD_HASH=$2
88INIT_CONFIG_ACCESS_TOKEN_HASH=$3
99INIT_CONFIG_ACCESS_TOKEN=$4
1010INIT_CONFIG_PASSWORD=$5
11- FLOWFUSE_URL=" ${6:- $PR_NUMBER .flowfuse.dev} "
11+ FF_NODES_TOKEN=$6
12+ FLOWFUSE_URL=" ${7:- $PR_NUMBER .flowfuse.dev} "
1213
1314
1415create_user () {
@@ -166,6 +167,14 @@ kubectl run flowfuse-setup-2 \
166167 " INSERT INTO public.\" AccessTokens\" (token,\" expiresAt\" ,scope,\" ownerId\" ,\" ownerType\" ,\" refreshToken\" ,name,\" createdAt\" ,\" updatedAt\" ) \
167168 VALUES ('$INIT_CONFIG_ACCESS_TOKEN_HASH ',NULL,'','1','user',NULL,'setup','2024-03-18 10:46:54.055+01','2024-03-18 10:46:54.055+01');"
168169
170+ # ## Configure ff-npm-registry token
171+ echo " Configuring ff-npm-registry token"
172+ curl -ks -w " \n" -XPUT \
173+ -H " Content-Type: application/json" \
174+ -H " Authorization: Bearer $INIT_CONFIG_ACCESS_TOKEN " \
175+ -d ' {"platform:ff-npm-registry:token": "' " $FF_NODES_TOKEN " ' "}' \
176+ https://$FLOWFUSE_URL /api/v1/settings/
177+
169178# ## Create project type
170179echo " Creating project type"
171180curl -ks -w " \n" -XPOST \
@@ -211,22 +220,23 @@ curl -ks -w "\n" -XPOST \
211220 "limit": 10
212221 },
213222 "features": {
214- "shared-library": false ,
215- "projectComms": false ,
223+ "shared-library": true ,
224+ "projectComms": true ,
216225 "ha": false,
217226 "teamHttpSecurity": false,
218227 "customCatalogs": false,
219228 "deviceGroups": false,
220229 "emailAlerts": false,
221230 "protectedInstance": false,
222- "deviceAutoSnapshot": false ,
231+ "deviceAutoSnapshot": true ,
223232 "instanceAutoSnapshot": false,
224233 "editorLimits": false,
225234 "fileStorageLimit": null,
226235 "contextLimit": null,
227236 "customHostnames":false,
228237 "staticAssets":false,
229- "teamBroker":false
238+ "teamBroker":false,
239+ "ffNodes": true
230240 },
231241 "instances": {
232242 "' " $projectTypeId " ' ": {
@@ -254,7 +264,7 @@ curl -ks -w "\n" -XPOST \
254264 "limit": 10
255265 },
256266 "features":{
257- "ha":true ,
267+ "ha":false ,
258268 "shared-library":true,
259269 "projectComms":true,
260270 "teamHttpSecurity":true,
@@ -267,11 +277,14 @@ curl -ks -w "\n" -XPOST \
267277 "instanceAutoSnapshot":true,
268278 "protectedInstance":true,
269279 "editorLimits":true,
270- "customHostnames":true ,
280+ "customHostnames":false ,
271281 "staticAssets":true,
272282 "projectHistory":true,
273283 "teamBroker":true,
274- "generatedSnapshotDescription":true
284+ "generatedSnapshotDescription":true,
285+ "assistantInlineCompletions": true,
286+ "npm": true,
287+ "ffNodes": true
275288 },
276289 "instances": {
277290 "' " $projectTypeId " ' ": {
@@ -319,7 +332,13 @@ curl -ks -w "\n" -XPOST \
319332 "teamBroker":true,
320333 "gitIntegration": true,
321334 "instanceResources":true,
322- "generatedSnapshotDescription":true
335+ "generatedSnapshotDescription":true,
336+ "assistantInlineCompletions": true,
337+ "ffNodes": true,
338+ "rbacApplication": true,
339+ "npm": true,
340+ "ffNodes": true,
341+ "tables": true
323342 },
324343 "instances": {
325344 "' " $projectTypeId " ' ": {
0 commit comments