chartmuseum
chartmuseum copied to clipboard
proposal: chartmuseum should support customized metadata for deployment
Does the index support somehow injecting extra metadata about the package in somehow?
@sereeth not at this time. How would you ideally like chartmuseum to provide this?
I'm also looking for it, I'm currently storing metadata as configmap, if I could upload the chart along with the metadata would be great.
https://github.com/helm/chartmuseum/pull/464 Does this maybe help?
For anyone looking for a workaround, you can add anything you want in the Chart.yaml annotations:
. I add annotations during my CI build to Chart.yaml right before packaging.
Ex: add gitCommit information to chart
CHART=mychart
yq -i eval ".annotations.gitCommit = \"$(git log -n 1 --pretty=format:%H -- "${CHART}/" )\"" "${CHART}/Chart.yaml"
helm package -d build "${CHART}"
$ helm show chart mychartmuseum/mychart
annotations:
gitCommit: baddecafbaddecafbaddecafbaddecafbaddecaf
apiVersion: v2
appVersion: 1.2.3
description: mydescription
name: mychart
type: application
version: 0.1.2