Skip to content

Unable to add repo - "error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type repo.IndexFile" #9440

Closed

Description

@DevatDxc

I have prepared helm charts and no issues in that. Able to deploy those charts using "helm install ...." Now wanted to create package and add it into the repository so that user can add them in helm repo from gitrepo and start using helm deploy .

So far was able to create packages using "helm package --destination " for the charts i had. Created the tar files (tgz)
snapshot3

when i tried to add them to helm repo from github - getting error:

github.dxc.com/healthcare-ohc/ohc-helm-charts.git" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type repo.IndexFile

Please advise why the error, what am i missing here.

Output of helm version:

version.BuildInfo{Version:"v3.3.1", GitCommit:"249e5215cde0c3fa72e27eb7a30e8d55c9696144", GitTreeState:"clean", GoVersion:"go1.14.7"}

Output of kubectl version:

Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"14f897abdc7b57f0850da68bd5959c9ee14ce2fe", GitTreeState:"clean", BuildDate:"2021-01-22T17:29:38Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):

AKS

snapshot1
snapshot2

Activity

  1. bacongobbler commented on Mar 9, 2021

    @bacongobbler
    Member

    Git repositories are git repositories. They are not Helm repositories.

    To explain further... https://helm.sh/docs/topics/chart_repository/

    A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts. When you're ready to share your charts, the preferred way to do so is by uploading them to a chart repository.

    Key words here being "HTTP server that houses an index.yaml file".

    If you would like to serve your charts from a git repository, there are several projects that help you serve it over HTTP, including an example on serving it via github pages.

    Hope this helps.

  2. github-actions commented on Jun 8, 2021

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions