From db37926778ededd8cc12fa4b36d6a4910ff7fc72 Mon Sep 17 00:00:00 2001 From: Dan Rice Date: Sat, 13 Jan 2024 10:54:18 -0500 Subject: [PATCH] Avoid changing all chart timestamps when updating Helm index Works around https://github.com/helm/helm/issues/7363. --- .gitignore | 1 + Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5557d67..45097d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ vendor coredns tilt_modules +*.tmp .helm .vscode .idea diff --git a/Makefile b/Makefile index 798cda0..0f71014 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,12 @@ build: ## Generate new helm package and update chart yaml file helm-update: - helm package charts/k8s-gateway -d charts/ - helm repo index --url https://ori-edge.github.io/k8s_gateway/ --merge index.yaml . + helm package charts/k8s-gateway -d charts.tmp/charts + helm repo index --url https://ori-edge.github.io/k8s_gateway/ --merge index.yaml charts.tmp/ + mv charts.tmp/charts/* charts/ + mv charts.tmp/index.yaml . + rmdir charts.tmp/charts + rmdir charts.tmp .PHONY: test test: