Open silvacraig opened 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
.
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.
@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.
ping @silvacraig
A quick start on adding a helm chart would be most helpful