Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OM2: generate tokenSource differently when running standalone/mmqueue locally with go run #35

Open
peterzhongyi opened this issue Aug 21, 2024 · 0 comments

Comments

@peterzhongyi
Copy link

Currently omclient.go doesn't generate a token source when running standalone/mmqueue locally with go run:

if os.Getenv("K_REVISION") != "" { // Running on Cloud Run, get GCP SA token

We can generate a token source with google.DefaultTokenSource as suggested in googleapis/google-api-go-client#873 (comment) when users use go run to run the mmqueue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant