-
Notifications
You must be signed in to change notification settings - Fork 38
61 lines (50 loc) · 1.42 KB
/
helm-validate.yml
File metadata and controls
61 lines (50 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Helm Chart Validation
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
helm-lint:
name: Lint Helm Chart
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Helm
uses: azure/setup-helm@v3
- name: Lint chart
run: helm lint --strict helm/temporal-worker-controller
helm-template:
name: Template Helm Chart
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Helm
uses: azure/setup-helm@v3
- name: Template with default values
run: helm template test-release helm/temporal-worker-controller
- name: Template with namespace creation
run: |
helm template test-release helm/temporal-worker-controller \
--set namespace.create=true
- name: Template with auth proxy disabled
run: |
helm template test-release helm/temporal-worker-controller \
--set authProxy.enabled=false \
--set metrics.disableAuth=true
helm-validate-succeed:
name: All Helm Validations Succeed
needs:
- helm-lint
- helm-template
runs-on: ubuntu-latest
if: always()
env:
RESULTS: ${{ toJSON(needs.*.result) }}
steps:
- name: Check results
run: |
if [[ -n $(echo "$RESULTS" | jq '.[] | select (. != "success")') ]]; then
exit 1
fi