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

For a non default gcloud config the project selection is buggy #247

Open
saikat-royc opened this issue May 10, 2024 · 0 comments
Open

For a non default gcloud config the project selection is buggy #247

saikat-royc opened this issue May 10, 2024 · 0 comments

Comments

@saikat-royc
Copy link
Collaborator

For a gcloud config list like:

[compute]
region = us-central1
zone = us-central1-c
[core]
account = <email>
disable_usage_reporting = True
project = <gcp project>

Your active configuration is: [test-dev-config]

the script used in the Makefile
PROJECT ?= $(shell gcloud config get-value project 2>&1 | head -n 1)
outputs string "Your active configuration is: [test-dev-config]"

This misconfigures the csidriver object spec "audience" field, and hard to debug.

$ gcloud config get-value project 2>&1
Your active configuration is: [test-dev-config]

This misconfigures the csidriver audience, and hard to debug. I think its better to make the PROJECT a mandatory field, instead of auto detect for a consistent behavior

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