Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    API Method to Get a List of Helm Chart Versions

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 7 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Stephen.Schaff
      last edited by

      Is there a way, via API, to get a list of versions for a given helm chart?

      The helm command line tool can do it with this command:

      helm search repo proget/my-helm-chart --versions --version ^v1.0
      

      That will return all the versions that start with v1.0.

      I need to do this in my auto build system. I could use the above example, but for this command to work, I have to save to disk a proget repository first (via helm repo add). I have found that builds that rely on persisting data to disk are brittle, to say nothing about the fact that the API key is now saved on disk for others to get at.

      I would like some way to get a listing of versions without having to persist anything to disk. Is there a way of doing that?

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        Hi @Stephen-Schaff ,

        I'm not sure about the API, but ProGet implements the Chart Repository API, and from a look at that, you should be able to just access index.yaml at the API Endpoint URL

        Here is some information about the format of that file: https://helm.sh/docs/topics/chart_repository/#the-index-file

        Can you give that a try and let us know what you find out? Cheers :)

        Cheers,
        Alana

        1 Reply Last reply Reply Quote 1
        • S Offline
          Stephen.Schaff
          last edited by

          That does indeed have the info. Thank you!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation