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

MacOS: when launched within IDE (not run from source) KUBECONFIG env variable is not available #826

Closed
adietish opened this issue Jan 31, 2025 · 3 comments · Fixed by #827
Assignees
Milestone

Comments

@adietish
Copy link
Collaborator

adietish commented Jan 31, 2025

Steps:

  1. ASSERT: use MacOS, only MacOS and maybe Windows are affected
  2. ASSERT: have KUBECONFIG env var set in ~/.zshrc or ./zprofile
    Setup is documented here:
  1. ASSERT: have latest plugin installed in your IDE (binary, not launched from source)
  2. EXEC: open Kubernetes tool window

Result:
No contexts are displayed, the window stays empty even though KUBECONFIG is set ex. in the IDEA terminal (echo $KUBECONFIG returns your list of kube config files).

Image
@adietish adietish self-assigned this Jan 31, 2025
@adietish adietish added this to the 1.5.0 milestone Jan 31, 2025
@adietish adietish moved this to 📝 In Progress in IDE Cloudaptors Jan 31, 2025
@adietish adietish changed the title when launched within IDE (not run from source) KUBECONFIG env variable is not available MacOS: when launched within IDE (not run from source) KUBECONFIG env variable is not available Jan 31, 2025
@adietish adietish moved this from 📝 In Progress to 📋 Backlog in IDE Cloudaptors Jan 31, 2025
@adietish adietish moved this from 📋 Backlog to 📝 In Progress in IDE Cloudaptors Jan 31, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Jan 31, 2025
adietish added a commit to adietish/intellij-kubernetes that referenced this issue Jan 31, 2025
adietish added a commit that referenced this issue Jan 31, 2025
@github-project-automation github-project-automation bot moved this from 📝 In Progress to ✅ Done in IDE Cloudaptors Jan 31, 2025
@adietish adietish reopened this Jan 31, 2025
@adietish
Copy link
Collaborator Author

Reopening to have it verified on Windows by @msivasubramaniaan.

@adietish
Copy link
Collaborator Author

adietish commented Feb 5, 2025

@msivasubramaniaan tested this on Windows and it worked. All contexts that he had defined across several files and listed in the KUBECONFIG env var:

Image

@adietish
Copy link
Collaborator Author

adietish commented Feb 5, 2025

closing as DONE.

@adietish adietish closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant