Can anyone provide or point to a working example that uses the (currently alpha) –update-env-vars flag within the cloud run job execute command context?
gcloud alpha run jobs execute [JOB] --update-env-vars=...
I have tried executing the command using the project owner account w/ iam.serviceAccountUser rights to the cloud run job’s service account. I always encounter ERROR: (gcloud.alpha.run.jobs.execute) PERMISSION_DENIED: The caller does not have permission.
I can update the job’s env variables using the same user account but cannot execute the job with the flag. Without the flag, I can execute perfectly fine. I detailed my problem on StackOverflow with no luck. Am I missing something or could there potentially be a bug?