File tree Expand file tree Collapse file tree 6 files changed +63
-2
lines changed Expand file tree Collapse file tree 6 files changed +63
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Helm Unit Tests
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' charts/**'
7
+ - ' .github/workflows/helm-test.yml'
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Install Helm
17
+ uses : azure/setup-helm@v3
18
+ with :
19
+ version : v3.12.3
20
+
21
+ - name : Install Helm unittest plugin
22
+ run : |
23
+ helm plugin install https://github.com/quintush/helm-unittest
24
+
25
+ - name : Run Helm unit tests
26
+ run : |
27
+ for chart in charts/*/; do
28
+ if [ -d "$chart" ]; then
29
+ echo "Testing chart: $chart"
30
+ helm unittest $chart
31
+ fi
32
+ done
Original file line number Diff line number Diff line change 21
21
.idea/
22
22
*.tmproj
23
23
.vscode/
24
+ tests/
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1.8
18
+ version : 0.1.9
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " v0.6.44 "
24
+ appVersion : " v0.6.101 "
Original file line number Diff line number Diff line change 65
65
{{- end }}
66
66
- name : ALLOW_DIRTY
67
67
value : " {{ .Values.digger.postgres.allow_dirty }}"
68
+ {{- with .Values.digger.customEnv }}
69
+ {{- toYaml . | nindent 8 }}
70
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ # digger/tests/deployment_test.yaml
2
+ suite : Test customEnv injection
3
+ templates :
4
+ - templates/backend-deployment.yaml
5
+ tests :
6
+ - it : should include customEnv environment variable
7
+ set :
8
+ digger.customEnv :
9
+ - name : TEST_ENV
10
+ value : test-value
11
+ asserts :
12
+ - contains :
13
+ path : spec.template.spec.containers[0].env
14
+ content :
15
+ name : TEST_ENV
16
+ value : test-value
Original file line number Diff line number Diff line change 8
8
repository : registry.digger.dev/diggerhq/digger_backend
9
9
tag : " v0.6.44"
10
10
11
+ # Custom environment variables to be added to the backend deployment
12
+ # Format:
13
+ # customEnv:
14
+ # - name: MY_CUSTOM_ENV
15
+ # value: "my-value"
16
+ # - name: ANOTHER_ENV
17
+ # value: "another-value"
18
+ customEnv : []
19
+
11
20
# livenessProbe and startupProbe settings
12
21
# https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
13
22
You can’t perform that action at this time.
0 commit comments