@@ -51,6 +51,7 @@ const { serviceAccount } = createServiceAccountAndGrantRoles(
5151 { name : 'objUser' , role : 'roles/storage.objectUser' } ,
5252 { name : 'bigqueryJobUser' , role : 'roles/bigquery.jobUser' } ,
5353 { name : 'bigqueryDataViwer' , role : 'roles/bigquery.dataViewer' } ,
54+ { name : 'tokenCreator' , role : 'roles/iam.serviceAccountTokenCreator' } ,
5455 ] ,
5556 isAdhocEnv ,
5657) ;
@@ -488,12 +489,12 @@ const migrations: ApplicationSuiteArgs['migrations'] = {
488489 args : isAdhocEnv
489490 ? [ 'npm' , 'run' , 'db:migrate:latest' ]
490491 : [
491- 'node' ,
492- './node_modules/typeorm/cli.js' ,
493- 'migration:run' ,
494- '-d' ,
495- 'src/data-source.js' ,
496- ] ,
492+ 'node' ,
493+ './node_modules/typeorm/cli.js' ,
494+ 'migration:run' ,
495+ '-d' ,
496+ 'src/data-source.js' ,
497+ ] ,
497498 } ,
498499} ;
499500
@@ -552,25 +553,25 @@ const [apps] = deployApplicationSuite(
552553 'key.pem' : Buffer . from ( temporalCert . key ) . toString ( 'base64' ) ,
553554 } ,
554555 } ,
555- ...additionalSecrets
556+ ...additionalSecrets ,
556557 ] ,
557558 apps : appsArgs ,
558559 crons : isAdhocEnv
559560 ? [ ]
560561 : crons . map ( ( cron ) => ( {
561- nameSuffix : cron . name ,
562- args : [ 'dumb-init' , 'node' , 'bin/cli' , 'cron' , cron . name ] ,
563- schedule : cron . schedule ,
564- limits : cron . limits ?? bgLimits ,
565- requests : cron . requests ?? bgRequests ,
566- activeDeadlineSeconds : cron . activeDeadlineSeconds ?? 300 ,
567- spot : {
568- enabled : true ,
569- weight : 70 ,
570- } ,
571- podAnnotations : podAnnotations ,
572- ...vols ,
573- } ) ) ,
562+ nameSuffix : cron . name ,
563+ args : [ 'dumb-init' , 'node' , 'bin/cli' , 'cron' , cron . name ] ,
564+ schedule : cron . schedule ,
565+ limits : cron . limits ?? bgLimits ,
566+ requests : cron . requests ?? bgRequests ,
567+ activeDeadlineSeconds : cron . activeDeadlineSeconds ?? 300 ,
568+ spot : {
569+ enabled : true ,
570+ weight : 70 ,
571+ } ,
572+ podAnnotations : podAnnotations ,
573+ ...vols ,
574+ } ) ) ,
574575 isAdhocEnv,
575576 dependsOn,
576577 } ,
0 commit comments