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

Notify user if plugin doesn't find a valid config #278

Closed
lstocchi opened this issue Oct 13, 2021 · 3 comments
Closed

Notify user if plugin doesn't find a valid config #278

lstocchi opened this issue Oct 13, 2021 · 3 comments
Assignees
Milestone

Comments

@lstocchi
Copy link

The k8s plugin assumes that the kube config can be found in the default path ~/.kube/config which is fine but we need to notify the user if that is not true. Otherwise they can be lost. No message, no notification and they don't know which is the problem.
image

The issue is that we take the path but we do not check if it really exists

val path = Paths.get(ConfigHelper.getKubeConfigPath())
executors.submit(ConfigWatcher(path, ::onConfigChange))

and the getKubeConfigPath() does

public static String getKubeConfigPath() {
      return System.getProperty("user.home") + "/.kube/config";
}

Now the problem can be of two types. The user used to start IJ. E.g. In my case i have the config inside home/luca/.kube/config but if i start IJ as root then the path where the plugin will look at is root/.kube/config. Or if the config has been moved to another path.

We should tell the user why the plugin window is empty.

@adietish
Copy link
Collaborator

@lstocchi thx for reporting!
this is related or even duplicate to #209. Keeping this issue because of all the details that it contains.

@adietish
Copy link
Collaborator

this is part of the epic #208

@adietish
Copy link
Collaborator

adietish commented Feb 7, 2025

This is duplicate to #817.

Closing as DUPLICATE.

@adietish adietish closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants