Giter VIP home page Giter VIP logo

Comments (8)

msiegenthaler avatar msiegenthaler commented on August 16, 2024 3

Hm, just thinking, shouldn't we take the actually depolyed thing, we already fetch the current revision (in current_revision()), so we could just parse it from there:

helm history --max 20 concourse | grep "DEPLOYED" | awk '{ print $8 }'

from concourse-helm-resource.

msiegenthaler avatar msiegenthaler commented on August 16, 2024 1

Agreed, that would be nice. I think we should also make it work for local tar.gz/folder-based charts. They also have the version in their Chart.yaml.
I think we should find a helm command that outputs it.. do you know of any way? helm search ist not optimal since it won't work with local charts.

I propose we use:
helm inspect chart stable/postgresql | spruce json | jq '.version' -r (prints 0.13.0)

that will also work for local charts:
helm inspect chart source/my-chart | spruce json | jq '.version' -r

from concourse-helm-resource.

msiegenthaler avatar msiegenthaler commented on August 16, 2024 1

Great, that worked fine. I also set up a Dockerhub build, so the image should now be available as linkyard/helm-chart-resource on Dockerhub.
I've also created a 0.1.0 version so we can test if everything works.

from concourse-helm-resource.

msiegenthaler avatar msiegenthaler commented on August 16, 2024

Wouldn't it be better to model the chart as a resource (check/get) and then deploy from that?
We're currently missing the check/get functionality in this resource and I'm considering adding a second resource "helm-chart" that would be able the check/get/put helm charts from a helm repo ("native" or S3). The helm-chart resource would download the chart to a .tar.gz and you could then do a put using the file and the concourse-helm-resource. That way you'd have full transparency (and control) over the deployed chart version.
What do you think about this proposal?

from concourse-helm-resource.

arbourd avatar arbourd commented on August 16, 2024

I think that is definitely a better model of deployment and I was actually thinking of creating a resource like that, heavily based upon this one as well (if I get there first I can donate it to you as you'd probably be better stewards).

Although, I'd like to know what this Helm resource is deploying. I believe this should actually be reported by Helm itself (why not right?), but it isn't at this time. I wonder if there's a better way to get that metadata...

TL;DR: still love to see it here
screen shot 2018-05-28 at 11 53 58 am

from concourse-helm-resource.

arbourd avatar arbourd commented on August 16, 2024

We're currently missing the check/get functionality in this resource and I'm considering adding a second resource "helm-chart" that would be able the check/get/put helm charts from a helm repo ("native" or S3)

Hey @msiegenthaler I put together https://github.com/arbourd/helm-chart-resource specifically for this reason. It is essentially a fork of your other projects. Only check and in have been implemented at this moment.

I'd love to transfer ownership of it to Linkyard (I feel like you'd be great stewards of it) and continue to hack on it.

Are you interested?

from concourse-helm-resource.

msiegenthaler avatar msiegenthaler commented on August 16, 2024

Wow, that looks great!
Sure, we'd be glad to take the ownership of it.

from concourse-helm-resource.

arbourd avatar arbourd commented on August 16, 2024

Awesome! I've sent the transfer to you directly (because I can't send it to orgs). 🤓

from concourse-helm-resource.

Related Issues (20)

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.