Skip to content

Commit 96f0614

Browse files
committed
fix: Helm release only supports one changed chart at a time
1 parent 66f06cd commit 96f0614

28 files changed

+40
-10
lines changed

.github/workflows/helm-ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ jobs:
1919
exit 1
2020
fi
2121
22-
call-lint-test:
23-
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@main
22+
call-lint-test-pyroscope:
23+
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@d1d04f478f48a0d153d490e7553c26bcb96383a2
2424
with:
2525
ct_configfile: operations/pyroscope/helm/ct.yaml
2626
ct_check_version_increment: false
2727
helm_version: v3.14.3
28+
call-lint-test-pyroscope-monitoring:
29+
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@d1d04f478f48a0d153d490e7553c26bcb96383a2
30+
with:
31+
ct_configfile: operations/monitoring/helm/ct.yaml
32+
ct_check_version_increment: false
33+
helm_version: v3.14.3

.github/workflows/helm-release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,30 @@ on:
55
branches:
66
- main
77
- "release-[0-9]+.[0-9]+"
8+
- "20251030_fix-chart-release" ## TODO: REMOVE ME!
89

910
jobs:
10-
call-update-helm-repo:
11+
call-update-helm-repo-pyroscope:
12+
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@d1d04f478f48a0d153d490e7553c26bcb96383a2
1113
permissions:
1214
contents: "write"
1315
id-token: "write"
1416
packages: "write"
15-
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@0b2c5a7aad1a11c1516aae3972d2961d41838167
1617
with:
1718
charts_dir: operations/pyroscope/helm/
1819
cr_configfile: operations/pyroscope/helm/cr.yaml
1920
ct_configfile: operations/pyroscope/helm/ct.yaml
2021
secrets:
2122
vault_repo_secret_name: grafana-pyroscope-releases
23+
call-update-helm-repo-pyroscope-monitoring:
24+
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@d1d04f478f48a0d153d490e7553c26bcb96383a2
25+
permissions:
26+
contents: "write"
27+
id-token: "write"
28+
packages: "write"
29+
with:
30+
charts_dir: operations/pyroscope/helm/
31+
cr_configfile: operations/monitoring/helm/cr.yaml
32+
ct_configfile: operations/monitoring/helm/ct.yaml
33+
secrets:
34+
vault_repo_secret_name: grafana-pyroscope-releases

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ cve/check:
408408
.PHONY: helm/lint
409409
helm/lint: $(BIN)/helm
410410
$(BIN)/helm lint ./operations/pyroscope/helm/pyroscope
411-
$(BIN)/helm lint ./operations/pyroscope/helm/pyroscope-monitoring
411+
$(BIN)/helm lint ./operations/monitoring/helm/pyroscope-monitoring
412412

413413
.PHONY: helm/docs
414414
helm/docs: $(BIN)/helm-docs
415415
$(BIN)/helm-docs -c operations/pyroscope/helm/pyroscope
416-
$(BIN)/helm-docs -c operations/pyroscope/helm/pyroscope-monitoring
416+
$(BIN)/helm-docs -c operations/monitoring/helm/pyroscope-monitoring
417417

418418
.PHONY: goreleaser/lint
419419
goreleaser/lint: $(BIN)/goreleaser
@@ -454,7 +454,7 @@ helm/check: $(BIN)/kubeconform $(BIN)/helm
454454
| go run ./tools/yaml-to-json \
455455
> ./operations/pyroscope/jsonnet/values.json
456456
# Generate dashboards and rules
457-
$(BIN)/helm template pyroscope-monitoring --show-only templates/dashboards.yaml --show-only templates/rules.yaml operations/pyroscope/helm/pyroscope-monitoring \
457+
$(BIN)/helm template pyroscope-monitoring --show-only templates/dashboards.yaml --show-only templates/rules.yaml operations/monitoring/helm/pyroscope-monitoring \
458458
| go run ./tools/monitoring-chart-extractor
459459

460460
.PHONY: deploy
@@ -476,7 +476,7 @@ deploy-micro-services-v1: $(BIN)/kind $(BIN)/helm docker-image/pyroscope/build
476476
.PHONY: deploy-monitoring
477477
deploy-monitoring: $(BIN)/kind $(BIN)/helm
478478
$(BIN)/kind export kubeconfig --name $(KIND_CLUSTER) || $(BIN)/kind create cluster --name $(KIND_CLUSTER)
479-
$(BIN)/helm upgrade --install pyroscope-monitoring ./operations/pyroscope/helm/pyroscope-monitoring
479+
$(BIN)/helm upgrade --install pyroscope-monitoring ./operations/monitoring/helm/pyroscope-monitoring
480480

481481
include Makefile.examples
482482

operations/monitoring/helm/cr.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
git-repo: helm-charts
2+
owner: grafana
3+
skip-existing: true

operations/monitoring/helm/ct.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See https://github.com/helm/chart-testing#configuration
2+
remote: origin
3+
target-branch: main
4+
kubeVersion: "1.23"
5+
chart-dirs:
6+
- operations/monitoring/helm
7+
helm-extra-args: --timeout 600s
8+
validate-maintainers: false

operations/pyroscope/helm/pyroscope-monitoring/Chart.yaml renamed to operations/monitoring/helm/pyroscope-monitoring/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pyroscope-monitoring
33
description: A Helm chart for monitoring Grafana Pyroscope. This helm chart uses otel-lgtm to monitor the health of the Grafana Pyroscope backend.
44
type: application
55

6-
version: 0.1.0
6+
version: 0.1.1
77
appVersion: "0.0.0"
88

99
dependencies:
File renamed without changes.

0 commit comments

Comments
 (0)