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

BUG: kubelogin convert-kubeconfig manifests invalid kubeconfig (env: null) #572

Open
raminqaf opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@raminqaf
Copy link

Whenever I use kubelogin convert-kubeconfig -l azurecli the populated kubeconfig file contains an invalid field env: null. According to the kubeconfig documentation, this field is not optional, meaning that it should not be null but rather an empty object. The correct form would be env: {}. This causes an exception in our project when using the Kubernetes Python client (lightkube).

The issue is also raised in the lightkube repository: gtsystem/lightkube#39

To reproduce this bug, simply run:

kubelogin convert-kubeconfig -l azurecli

afterward check your kubeconfig file:

vim ./.kube/config

If you search for env:, you will find the value null.

@raminqaf raminqaf changed the title kubelogin convert-kubeconfig manifests invalid kubeconfig (env: null) BUG: kubelogin convert-kubeconfig manifests invalid kubeconfig (env: null) Dec 16, 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