Skip to content

Commit

Permalink
Fix overwriting createdDate for old chart versions (apache#18)
Browse files Browse the repository at this point in the history
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 authored Jan 8, 2020
1 parent f99ec17 commit 8288aba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ lint:

.PHONY: publish
publish: lint
@helm package couchdb -d docs
@helm repo index docs --url https://apache.github.io/couchdb-helm
@mkdir -p new_charts
@helm package -u -d new_charts couchdb
@helm repo index --url "https://apache.github.io/couchdb-helm" --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
Expand Down

0 comments on commit 8288aba

Please sign in to comment.