Skip to content

Commit 1daaeb5

Browse files
authored
fix: Helm release only supports one changed chart at a time (#4583)
* fix: Helm release only supports one changed chart at a time * Update workflow hash * Remove test branch
1 parent 89d3c98 commit 1daaeb5

28 files changed

+41
-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@191acd56a41783452d6e583fcad195de27959044
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@191acd56a41783452d6e583fcad195de27959044
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: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,27 @@ on:
77
- "release-[0-9]+.[0-9]+"
88

99
jobs:
10-
call-update-helm-repo:
10+
call-update-helm-repo-pyroscope:
11+
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@191acd56a41783452d6e583fcad195de27959044
1112
permissions:
1213
contents: "write"
1314
id-token: "write"
1415
packages: "write"
15-
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@0b2c5a7aad1a11c1516aae3972d2961d41838167
1616
with:
1717
charts_dir: operations/pyroscope/helm/
1818
cr_configfile: operations/pyroscope/helm/cr.yaml
1919
ct_configfile: operations/pyroscope/helm/ct.yaml
2020
secrets:
2121
vault_repo_secret_name: grafana-pyroscope-releases
22+
call-update-helm-repo-pyroscope-monitoring:
23+
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@191acd56a41783452d6e583fcad195de27959044
24+
permissions:
25+
contents: "write"
26+
id-token: "write"
27+
packages: "write"
28+
with:
29+
charts_dir: operations/pyroscope/helm/
30+
cr_configfile: operations/monitoring/helm/cr.yaml
31+
ct_configfile: operations/monitoring/helm/ct.yaml
32+
secrets:
33+
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
chart-repos:
8+
- grafana=https://grafana.github.io/helm-charts
9+
helm-extra-args: --timeout 600s
10+
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)