- curl
- k8s-yaml-splitter (
go get github.com/latchmihay/k8s-yaml-splitter
) - gnu sed
- yq (jq wrapper for yaml files -
pip install yq
)
The attached script is for pre 1.15 k8s, if you're already on 1.15 remove the -legacy
from the url.
- Run
helm create
to create yourself a new chart
$ helm create cert-manager-pre
- Edit Chart.yaml to correctly describe the chart and match appversion to the version you want to install (script attached is for v0.14.3)
- Save
update.sh
into the same directory as Chart.yaml - Delete the yaml files and
test/
folder fromtemplates/
- Empty the
templates/NOTES.txt
or make it say something nice and appropriate - Run
sh update.sh
from the same directory as Chart.yaml
- Edit Chart.yaml to update the appversion
- Edit update.sh to point to the new version (check if you've upgraded to 1.15 k8s too, if so, remove -legacy)
- Remove all the yaml files from the
templates/
folder - Run the script again
Very good question. Effort is pretty low, but I guess there's not that much call for it, most people only touch cert-manager to install it, or upgrade it. It'd be nice for jetstack to add something like the above to their CI. It'd be less involved for them as they probably have the source files.