Helm 3.10.1 fails to add Gitlab chart repo

Summary

When trying to add Gitlab Helm chart repository using helm repo add gitlab http://charts.gitlab.io/ and Helm 3.10.1 it fails with following message:

Error: looks like "http://charts.gitlab.io/" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: line 17: mapping values are not allowed in this context

Steps to reproduce

Try adding repository using the same version

Configuration used

helm version output:

version.BuildInfo{Version:"v3.10.1", GitCommit:"9f88ccb6aee40b9a0535fcc7efea6055e1ef72c9", GitTreeState:"clean", GoVersion:"go1.18.7"}

Current behavior

Repository adding process fails

Expected behavior

Repository should be added normally

Versions

  • Platform:
    • Cloud: OVH
  • Kubernetes: (kubectl version)
    • Client: Client Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.3", GitCommit:"434bfd82814af038ad94d62ebe59b133fcb50506", GitTreeState:"clean", BuildDate:"2022-10-12T10:57:26Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
    • Server: Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:23:26Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/amd64"}
  • Helm: (helm version)
    • Client:version.BuildInfo{Version:"v3.10.1", GitCommit:"9f88ccb6aee40b9a0535fcc7efea6055e1ef72c9", GitTreeState:"clean", GoVersion:"go1.18.7"}

Relevant logs