You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/06/27 09:00:03 UTC

[couchdb-helm] 27/43: Fix overwriting createdDate for old chart versions (#18)

This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git

commit 8288aba999689a04b4e65115bd7277d85cf5d601
Author: Will Holley <wi...@apache.org>
AuthorDate: Wed Jan 8 12:15:36 2020 +0000

    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.
---
 Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index bf58f7e..02865b8 100644
--- a/Makefile
+++ b/Makefile
@@ -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