stefanprodan / timoni

Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm.
https://timoni.sh
Apache License 2.0
1.51k stars 67 forks source link

ERR loading kubeconfig failed: stat ~/.kube/config:: no such file or directory #300

Closed JCzz closed 8 months ago

JCzz commented 8 months ago

os: macos arm64 m1

installed with brew timoni -v timoni version 0.18.0

timoni -n test apply podinfo oci://ghcr.io/stefanprodan/modules/podinfo --version latest 2:30PM INF i:podinfo > pulling oci://ghcr.io/stefanprodan/modules/podinfo:latest 2:30PM INF i:podinfo > using module timoni.sh/podinfo version 6.5.4 2:30PM ERR loading kubeconfig failed: stat /Users/christian/.kube/config:: no such file or directory

The file is there: "~/.kube/config"

stefanprodan commented 8 months ago

Do you have the KUBECONFIG environment variable set by any chance? Can you please try:

timoni -n test apply podinfo oci://ghcr.io/stefanprodan/modules/podinfo \
--kubeconfig ~/.kube/config
JCzz commented 8 months ago

Thanks, yes that worked. Strange now that kubectl is working on the same cluster.

Nice work and looking forward to follow you work.

stefanprodan commented 8 months ago

It may be related to #309 Do you have multiple config files in the KUBECONFIG env var?