helm / chartmuseum

helm chart repository server
https://chartmuseum.com
Apache License 2.0
3.56k stars 399 forks source link

proposal: chartmuseum should support customized metadata for deployment #169

Open sereeth opened 5 years ago

sereeth commented 5 years ago

Does the index support somehow injecting extra metadata about the package in somehow?

jdolitsky commented 5 years ago

@sereeth not at this time. How would you ideally like chartmuseum to provide this?

viniciuschiele commented 5 years ago

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.

ryanm101 commented 3 years ago

https://github.com/helm/chartmuseum/pull/464 Does this maybe help?

antoinedeschenes commented 3 years ago

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