Skip to content

Commit

Permalink
Avoid changing all chart timestamps when updating Helm index
Browse files Browse the repository at this point in the history
Works around helm/helm#7363.
  • Loading branch information
dnrce committed Jan 13, 2024
1 parent b766c6c commit db37926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
vendor
coredns
tilt_modules
*.tmp
.helm
.vscode
.idea
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db37926

Please sign in to comment.