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

Unintuitive precedence of environment over cli flags #538

Closed
Kidsan opened this issue Oct 23, 2024 · 1 comment
Closed

Unintuitive precedence of environment over cli flags #538

Kidsan opened this issue Oct 23, 2024 · 1 comment

Comments

@Kidsan
Copy link

Kidsan commented Oct 23, 2024

I am having issues using kubelogin and parameterizing uses of it when in a managed pipeline environment
Due to the

func (o *Options) UpdateFromEnv() {
function, arguments passed via cli are ignored for non-obvious reasons.

Example

> AZURE_TENANT_ID=foo kubelogin get-token --tenant-id bar # tenant-id = foo

It seems to me that in cases like this --tenant-id should be prioritized.

@Kidsan
Copy link
Author

Kidsan commented Oct 24, 2024

Duplicate of #427

@Kidsan Kidsan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
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