chartmuseum icon indicating copy to clipboard operation
chartmuseum copied to clipboard

proposal: chartmuseum should support customized metadata for deployment

Open sereeth opened this issue 6 years ago • 4 comments

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

sereeth avatar Sep 24 '18 21:09 sereeth

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

jdolitsky avatar Sep 26 '18 17:09 jdolitsky

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.

viniciuschiele avatar Oct 17 '18 21:10 viniciuschiele

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

ryanm101 avatar Jun 08 '21 06:06 ryanm101

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

antoinedeschenes avatar Aug 19 '21 14:08 antoinedeschenes