The principles are taken from Mattia Peri. We commit directly to the Master or Main branch in the /docs folder. This is then published on GitHub Pages.
To add a chart do:
git clone https://github.com/eea/helm-charts.git
Create your package or update the source. For the example we will call the package toypackage
.
cd helm-charts/sources
mkdir toypackage _or helm create toypackage_
cd toypackage
_... create Chart.yaml, values.yaml etc. If updating, remember to increase version number in Chart.yaml_
Check package:
helm lint .
Update dependecies: helm dependencies update if you have changed the chart dependencies
Update/Release docs:
Can be called by the name or the path of the chart directory:
./update_docs.sh toypackage
or ./update_docs.sh sources/toypackage/
or
./update_docs.sh sources/toypackage
The script does:
git pull
git add .
cd ../../docs
mkdir temp
cd temp
helm package ../../sources/toypackage
helm repo index --merge ../index.yaml .
mv * ../
cd ..
rmdir temp
git add .
git commit
git push
In Rancher 2 you can add the repository to the cluster and it will show the packages on a list. You can then select the version to install or upgrade to.
On the command line you can do the same with the helm tool.
helm add repo eea-charts https://eea.github.io/helm-charts/
The sources for these pages are located at the GitHub project.