@@ -263,6 +263,7 @@ export function directorDeploymentEnvironment(config) {
263263 }
264264 const serviceAccount = projectServiceAccount ( config , 'capacity-service-account' )
265265 const asiaProofServiceAccount = projectServiceAccount ( config , 'asia-proof-service-account' )
266+ const deployServiceAccount = projectServiceAccount ( config , 'deploy-service-account' )
266267 const rehomeDirectorServiceAccount = projectServiceAccount (
267268 config ,
268269 'rehome-director-service-account'
@@ -274,6 +275,10 @@ export function directorDeploymentEnvironment(config) {
274275 if ( asiaProofServiceAccount !== undefined ) {
275276 environment . ORCA_RELAY_ASIA_PROOF_SERVICE_ACCOUNT = asiaProofServiceAccount
276277 }
278+ // The admin identity the director trusts; omitted, the serving revision's value carries over.
279+ if ( deployServiceAccount !== undefined ) {
280+ environment . ORCA_RELAY_DEPLOY_SERVICE_ACCOUNT = deployServiceAccount
281+ }
277282 if ( rehomeDirectorServiceAccount !== undefined ) {
278283 environment [ DIRECTOR_REHOME_IDENTITY_ENV ] = rehomeDirectorServiceAccount
279284 environment [ DIRECTOR_REHOME_AUDIENCE_ENV ] = config [ 'rehome-audience' ]
@@ -330,6 +335,7 @@ export function parseArguments(argv) {
330335 }
331336 if (
332337 values [ 'capacity-service-account' ] !== undefined ||
338+ values [ 'deploy-service-account' ] !== undefined ||
333339 values [ 'director-cells-json' ] !== undefined ||
334340 values [ 'runtime-service-account' ] !== undefined ||
335341 values [ 'rehome-director-service-account' ] !== undefined ||
0 commit comments