You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Kubernetes configuration file (kubeconfig) has incorrect permissions, the vclusterctl create command fails to parse the Helm version correctly, leading to the error message "please ensure that the 'helm' binary in your PATH is valid. Currently only Helm >= v3.10.0 is supported".
The issue is that the helm version --client --template {{.Version}} command outputs the two warning messages about the insecure file permissions before the actual Helm version, and the current code in vcluster does not handle these warnings, causing the version parsing to fail.
vcluster create my-vcluster --namespace vtest --kubernetes-version v1.28
09:16:55 fatal please ensure that the "helm" binary in your PATH is valid. Currently only Helm >= v3.10.0 is supported
helm version --client --template {{.Version}}
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /Users/robin/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /Users/robin/.kube/config
v3.13
Proposed Solution
To address this issue, the vcluster code should be modified to ignore the first two warning messages when parsing the Helm version output, and only extract the actual version number.
or
chmod 600 /Users/robin/.kube/config, but it was hard to figure this out because the error message misleads to check bin paths.
The text was updated successfully, but these errors were encountered:
Hi @robinbraemer, thx for creating this issue.
Yes, I bet the CombinedOutput made it hard to figure this out. Very unfortunate :/. But the issue should be fixed with #1699. Though, this isn't released yet.
Description
When the Kubernetes configuration file (kubeconfig) has incorrect permissions, the vclusterctl create command fails to parse the Helm version correctly, leading to the error message "please ensure that the 'helm' binary in your PATH is valid. Currently only Helm >= v3.10.0 is supported".
The issue is that the helm version --client --template {{.Version}} command outputs the two warning messages about the insecure file permissions before the actual Helm version, and the current code in vcluster does not handle these warnings, causing the version parsing to fail.
https://github.com/loft-sh/vcluster/blob/3a488feb7aaa7b571b29ddb6dc875ae4393d4992/cmd/vclusterctl/cmd/create.go#L177C84-L177C96
Proposed Solution
To address this issue, the vcluster code should be modified to ignore the first two warning messages when parsing the Helm version output, and only extract the actual version number.
or
chmod 600 /Users/robin/.kube/config
, but it was hard to figure this out because the error message misleads to check bin paths.The text was updated successfully, but these errors were encountered: