File tree Expand file tree Collapse file tree
campaign-orchestrator/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77 paths :
88 - charts/**
9- - lint-charts.sh
109 - .github/workflows/helm-release.yml
1110 pull_request :
1211 branches :
1312 - main
1413 paths :
1514 - charts/**
16- - lint-charts.sh
1715 - .github/workflows/helm-release.yml
1816 workflow_dispatch :
1917 inputs :
4644 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4745
4846 - name : Lint and template charts
49- run : ./lint-charts.sh
47+ run : ./charts/ lint-charts.sh
5048
5149 helm-release :
5250 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ charts
2+ Chart.lock
3+ * .tgz
Original file line number Diff line number Diff line change 1+ # Example values for umbrella-chart usage where a shared secret already exists.
2+ #
3+ # This expects a Secret in the target namespace:
4+ # metadata.name: intersect-shared-secrets
5+ # data.API_KEY: <base64 encoded API key>
6+ # data.BROKER_PASSWORD: <base64 encoded broker password>
7+ # data.MINIO_PASSWORD: <base64 encoded minio password>
8+
9+ app :
10+ apiKey :
11+ isSecret : false
12+ hardcoded : " 01020304050607080910111213141516"
13+ minio :
14+ password :
15+ isSecret : false
16+ hardcoded : " 01020304050607080910111213141516"
17+
18+ broker :
19+ password :
20+ isSecret : false
21+ hardcoded : " 01020304050607080910111213141516"
22+
23+ campaignRepository :
24+ backend : memory
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -eu
4+
5+ cd " $( dirname " $0 " ) "
6+
7+ rc=0
8+
9+ for chart_yaml in * /Chart.yaml; do
10+ chart_dir=" $( dirname " $chart_yaml " ) "
11+ echo " ======= VERIFYING CHART: $chart_dir ======="
12+
13+ # Ensure local chart dependencies are present if any are declared.
14+ helm dependency update " $chart_dir " || {
15+ rc=1
16+ echo " --------- DEPENDENCY BUILD FAILED: $chart_dir --------"
17+ }
18+
19+ for values_file in " $chart_dir " /examples/* .yaml; do
20+ echo " ------- VERIFYING EXAMPLE: $values_file --------"
21+
22+ helm template " $chart_dir " -f " $values_file " > /dev/null || {
23+ rc=1
24+ echo " --------- TEMPLATE VERIFICATION FAILED: $values_file --------"
25+ }
26+
27+ helm lint " $chart_dir " -f " $values_file " || {
28+ rc=1
29+ echo " --------- LINT VERIFICATION FAILED: $values_file --------"
30+ }
31+
32+ echo " ------- FINISHED VERIFYING EXAMPLE: $values_file --------"
33+ echo
34+ done
35+
36+ echo " ======= FINISHED CHART: $chart_dir ======="
37+ echo
38+ done
39+
40+ exit " $rc "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments