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

refactor: adding a check for the KUBECONFIG variable #10331

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlexonOliveiraRH
Copy link

@AlexonOliveiraRH AlexonOliveiraRH commented Dec 12, 2024

Signed-off-by: Alexon Oliveira alexon@redhat.com

What does this PR do?

This validation of the existence of the KUBECONFIG variable set in the operating system aims to inform the use through the console that this could lead to an unexpected behavior in some scenarios, like trying to install a Kubernetes cluster and failing because Podman Desktop cannot use or update the default ~/.kube/config file. Although this not correct the variable value, at least informs the user of its value, allowing the user to take the proper action to fix it.

Screenshot / video of UI

What issues does this PR fix or reference?

The issue #9983 describes this better with an example of such situation. Closes #9983.

How to test this PR?

  • Tests are covering the bug fix or the new feature

@AlexonOliveiraRH AlexonOliveiraRH requested review from benoitf and a team as code owners December 12, 2024 14:30
@AlexonOliveiraRH AlexonOliveiraRH requested review from cdrage and axel7083 and removed request for a team December 12, 2024 14:30
This validation of the existence of the KUBECONFIG
variable set in the operating system aims to inform
the use through the console that this could lead
to an unexpected behavior in some scenarios, like
trying to install a Kubernetes cluster and failing
because Podman Desktop cannot use or update the
default ~/.kube/config file. The issue podman-desktop#9983 describes
this better with an example of such situation. Although
this not correct the variable value, at least informs
the user of its value, allowing the user to take the
proper action to fix it.

Closes podman-desktop#9983

Signed-off-by: Alexon Oliveira <alexon@redhat.com>
Signed-off-by: Alexon Oliveira <alolivei@redhat.com>
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.

Error: Failed to create kind cluster. No active cluster!
1 participant