kinvolk / lokomotive

🪦 DISCONTINUED Further Lokomotive development has been discontinued. Lokomotive is a 100% open-source, easy to use and secure Kubernetes distribution from the volks at Kinvolk
https://kinvolk.io/lokomotive-kubernetes/
Apache License 2.0
321 stars 49 forks source link

Document method for adding Helm Charts to assets #477

Open silvacraig opened 4 years ago

silvacraig commented 4 years ago

A quick start on adding a helm chart would be most helpful

invidian commented 4 years ago

Hey @silvacraig, thanks for creating the issue. We're aware that there is not much developer-oriented documentation at the moment.

What kind of chart you want to add for assets? Would it be a chart for new component? Or some more core-oriented chart, like new CNI or some extra core Kubernetes component like CoreDNS? Or maybe it would be platform-specific? Depending on that, there are different places where you would put the chart in the assets.

But general approach is to just drop the files in ./assets directory, run make update-assets or just make and then the assets should be available from the functions like LoadChartFromAssets.

silvacraig commented 4 years ago

Have you thought of being able to drop a .lokocfg with a helm chart url as an attribute in the cluster config directory and pulling the chart. Admiitedly I'm using LENS and that allowed me to access the helm repo and was an easy way to deploy nfs-client provisioner, my original goal, but I had to edit the config on the cluster rather than it being scripted. Apologies I can't be more constructive but I'm more inclined to ansible and bash - although go looks nice. My search for LoadChartfromassets gave me a look but I can't piece it all together at the moment.

invidian commented 4 years ago

@silvacraig hmm, so what you're trying to do is to install arbitrary helm chart using lokoctl component apply ? We were thinking about such feature in the past, but it has not been implemented yet.

invidian commented 4 years ago

ping @silvacraig