Error message when execute command helm version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/ocp-install/auth/kubeconfig
Error: no repositories found. You must add one before updating
Solution: Remove the permission
chmod o-r ~/ocp-install/auth/kubeconfig
chmod g-r ~/ocp-install/auth/kubeconfig
Once done, execute helm version again
[root@ocp-svc ~]# helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"clean", GoVersion:"go1.15.11"}
More detail, please refer to https://github.com/helm/helm/issues/9115