Skip to content
Browse files
Fix overwriting createdDate for old chart versions (#18)
By default, `helm repo index` will update all `created` date fields
in the index to the current date. This results in us losing the
creation dates for old chart versions.

One workaround is to create an index with only the new chart version
and merge this with the existing index. This commit updates
`make publish` to do that.
  • Loading branch information
willholley committed Jan 8, 2020
1 parent f99ec17 commit 8288aba999689a04b4e65115bd7277d85cf5d601
Showing 1 changed file with 6 additions and 2 deletions.
@@ -18,8 +18,12 @@ lint:

.PHONY: publish
publish: lint
@helm package couchdb -d docs
@helm repo index docs --url
@mkdir -p new_charts
@helm package -u -d new_charts couchdb
@helm repo index --url "" --merge docs/index.yaml new_charts
@mv new_charts/couchdb*.tgz docs
@mv new_charts/index.yaml docs/index.yaml
@rm -rf new_charts

# Run end to end tests using KinD
.PHONY: test

0 comments on commit 8288aba

Please sign in to comment.