Skip to content

Commit b7d119e

Browse files
committed
Kubernetes: update Chart.lock of RUT
In ITISFoundation#1139 resource usage tracker (RUT) chart dependencies were updated but no Chart.lock was not. This PRs updates Chart.lock (via helm dependency update). Bonus: * Automate this with pre-commit hook * fixes bug from ITISFoundation#1139
1 parent d8aed21 commit b7d119e

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,10 @@ repos:
122122
always_run: true
123123
language: script
124124
files: '^(.*\/Makefile.*)|(.*\.deploy_everything_locally.bash)|(.*\/services/.*\/.*\.((sh)|(bash)))$'
125+
- id: helm-deps
126+
name: Helm Dependency Update
127+
description: Make sure all Chart.lock files are up-to-date
128+
entry: bash -c 'find . -name Chart.yaml -exec dirname {} \; | xargs -t -I% helm dep up %'
129+
language: system
130+
files: ^charts/
131+
pass_filenames: false

charts/simcore-charts/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Updating chart dependencies
2+
3+
1. Execute `make helmfile-deps`
4+
2. Copy generated content to respective `Chart.lock`
5+
6+
Avoid error: `Error: the lock file (Chart.lock) is out of sync with the dependencies file (Chart.yaml). Please update the dependencies`
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common-helpers
33
repository: file://../common-helpers
4-
version: 0.0.1
5-
digest: sha256:5dad45e33a2acd921f5f907f9cabb434bb60f14bb799df95897661e95b302a26
6-
generated: "2024-08-29T11:15:50.206549321+02:00"
4+
version: 0.0.2
5+
digest: sha256:d6893dfacee6738bea269ee1ef0cec150d742d229541cde753b35f45fc1fa48a
6+
generated: "2025-07-21T13:36:38.485508045+02:00"

0 commit comments

Comments
 (0)