Giter Site home page Giter Site logo

Work without local repo about helm-whatup HOT 6 OPEN

bacongobbler avatar bacongobbler commented on September 1, 2024
Work without local repo

from helm-whatup.

Comments (6)

ekeih avatar ekeih commented on September 1, 2024 2

I wrote a small tool heluxup which maybe does what you want: https://github.com/ekeih/heluxup 🤔

It looks at all HelmRelease objects in you flux repo, downloads the index.yaml files for all used repos, checks for new releases and updates your HelmRelease files.
It would be possible to extend heluxup to allow limits based on semver, e.g. "only do patch updates". It would also be possible to make automated git commits and pushes, but I did not implement this yet. If you would like such functionalities, feel free to open issues or pull requests: https://github.com/ekeih/heluxup/issues

from helm-whatup.

stevehipwell avatar stevehipwell commented on September 1, 2024

@cwrau we're using the Flux Helm operator too and we currently just make sure that we have the relevant repos configured locally and just run helm repo update && helm whatup. If you wanted something more in-cluster and automated you could roll an image to automatically configure helm based on the cluster repos before running helm repo update && helm whatup. You could then get an outdated report triggered by a cron job.

from helm-whatup.

stevehipwell avatar stevehipwell commented on September 1, 2024

@ekeih that looks great!! I think a flag to limit by semver would be a very useful addition.

from helm-whatup.

cwrau avatar cwrau commented on September 1, 2024

That looks great! Perfect for my usecase!

Still, not having to have the same repos configured could be useful for other people.

from helm-whatup.

bacongobbler avatar bacongobbler commented on September 1, 2024

I'm not sure I fully understand the use case. In either case, you'd have to tell helm whatup how to fetch the repository index to determine if there's an update available. heluxup accomplishes the same task. The only difference is that heluxup reads a file in a given directory with a list of repositories to accomplish the same task.

https://github.com/ekeih/heluxup/blob/f8f605161b810497559b1156c2a68c67f7980ddd/heluxup/main.py#L79-L92

How would you imagine this would work?

from helm-whatup.

ekeih avatar ekeih commented on September 1, 2024

Looking at helm/helm#4256 I don't think there is a way to figure out the source repos of the installed charts. So I think the answer to the original question Is it possible to check for updates without the need for local repos? is No.
With heluxup it only works because with the helm-operator there is a way to store the original chart source repo, but with vanilla helm there isn't.

from helm-whatup.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.