-
Notifications
You must be signed in to change notification settings - Fork 37
66 lines (57 loc) · 2.04 KB
/
Copy pathhelm.yml
File metadata and controls
66 lines (57 loc) · 2.04 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
62
63
64
65
66
name: Helm chart
# Lint and schema-validate the Kubernetes Helm chart. Runs only when the chart (or this
# workflow) changes, so it stays out of the way of pure-Python PRs.
on:
push:
branches: [master]
paths:
- "deploy/helm/**"
- ".github/workflows/helm.yml"
pull_request:
branches: [master]
paths:
- "deploy/helm/**"
- ".github/workflows/helm.yml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: helm-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CHART: deploy/helm/coderag
KUBECONFORM_VERSION: "0.6.7"
jobs:
lint-and-validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Set up Helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
with:
version: v3.16.4
- name: Helm lint (default + full value sets)
run: |
helm lint "$CHART" -f "$CHART/ci/default-values.yaml"
helm lint "$CHART" -f "$CHART/ci/full-values.yaml"
- name: Install kubeconform
run: |
curl -fsSL \
"https://github.com/yannh/kubeconform/releases/download/v${KUBECONFORM_VERSION}/kubeconform-linux-amd64.tar.gz" \
| tar -xz -C /usr/local/bin kubeconform
kubeconform -v
- name: Render and schema-validate
run: |
# Standalone: the chart must render and install with zero required config.
echo "::group::standalone defaults (no values)"
helm template coderag "$CHART" | kubeconform -strict -summary -kubernetes-version 1.29.0
echo "::endgroup::"
for values in default full; do
for kube in 1.27.0 1.29.0 1.31.0; do
echo "::group::$values values @ k8s $kube"
helm template coderag "$CHART" -f "$CHART/ci/${values}-values.yaml" \
| kubeconform -strict -summary -kubernetes-version "$kube"
echo "::endgroup::"
done
done