roboll / helmfile

Deploy Kubernetes Helm Charts
MIT License
4.04k stars 565 forks source link

Use helmfile to create a helm chart #1722

Closed avgKol closed 3 years ago

avgKol commented 3 years ago

As I understand, helmfile makes it easier to deploy helm charts across environments .

Is Is it possible to use helmfile to create a helm chart on the fly ?

mumoshu commented 3 years ago

@avgKol Hey! I have a similar sentiment and want to compare your idea with mine.

So, helmfile is already able to turn a directory of raw K8s manifest YAML files, or a directory containing kustomize kustomization.yaml into a Helm chart on-the-fly.

https://github.com/roboll/helmfile/blob/master/docs/advanced-features.md#deploy-kustomizations-with-helmfile

Is that what you would like? Or do you have any other idea in your mind?

mumoshu commented 3 years ago

@avgKol Did you have any chance to check my reply? I believe Helmfile already supports your use-case

avgKol commented 3 years ago

@avgKol Did you have any chance to check my reply? I believe Helmfile already supports your use-case

Helmfile does not seem to help with that. I am using move2kube .

mumoshu commented 3 years ago

@avgKol Hey! Sorry but I don't fully get it. You need to persist the generated Helm chart for whatever reason? If not, Helmfile is already able to generate a temporary Helm chart "on the fly", which will be enough for managing e.g. a set of K8s manifests with Helmfile.

mumoshu commented 3 years ago

Unfortunately, this ended up with me not even understanding what the original goal was.

Helmfile supports various deployment sources, including:

You can even leverage the incubator/raw chart for to use Helm features while not required to write your own Chart.

Furthermore, you can add ad-hoc changes to the chart and manifests/kustomization using:

To anyone seeing this issue later, Id' would be helpful to take the above into your consideration.