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

BugFix: Check if the returned ExecCredential has env field #80

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

raminqaf
Copy link
Contributor

@raminqaf raminqaf commented Dec 10, 2024

The ExecConfig under the Kubeconfig contains an env field. The kubelogin command of azure is populating this field with null instead of an empty dictionary.

This causes an error: TypeError: 'NoneType' object is not iterable.

A quick and easy fix is to do a check if this variable is set.

relates to: #39

Issue on kubelogin repo: Azure/kubelogin#572

@gtsystem
Copy link
Owner

Can you rebase?

@raminqaf
Copy link
Contributor Author

@gtsystem It is rebased 🙌

@gtsystem gtsystem merged commit b825f59 into gtsystem:master Dec 16, 2024
8 checks passed
@gtsystem
Copy link
Owner

Change released as v0.15.8.
I'm accepting this change as it seems several tool produce a wrong content for env and this is silently accepted by kubectl

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

Successfully merging this pull request may close these issues.

2 participants