Commit affff42
improvement(helm): lint the chart with ct instead of hand-rolled checks
`ct lint` (helm/chart-testing) is what the large charts standardize on --
ingress-nginx, prometheus-community and external-secrets all gate on it -- and
it subsumes both of the checks this workflow was doing by hand. Its
--check-version-increment defaults to true, so the bespoke version-bump job is
now redundant and is deleted; on top of the bare `helm lint` it replaces, it
adds yamllint over Chart.yaml and every values file, yamale schema validation
of Chart.yaml, and maintainer-account validation.
Two invocations, because ct couples change detection to the version check.
--charts lints unconditionally but DISABLES the version check, so it is used
only on pushes, where a merged branch leaves nothing to diff. PRs use
--chart-dirs (this chart is at helm/sim, not ct's default charts/) with
--target-branch, which is the combination that actually fails a chart change
carrying no version bump. Verified both directions against a scratch repo: no
bump fails with "Needs a version bump!", bump passes.
Adopting it required the chart to satisfy the standard linter:
- values.yaml had 66 lines of trailing whitespace and one comment missing its
second leading space. Only the comment line is not blank; no value changed.
- ci/full-values.yaml used `[{ path: /, ... }]`, which yamllint rejects for the
spaces inside braces. Rendered output is byte-identical either way.
- maintainers[].name is validated as a real account on the forge, and "Sim
Team" is not one. Now the GitHub org, matching how every chart cited above
lists its maintainers.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TknQyteeUDn6xi94sH71Y1 parent 8c73508 commit affff42
4 files changed
Lines changed: 109 additions & 106 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
67 | | - | |
68 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
69 | 105 | | |
70 | 106 | | |
71 | 107 | | |
| |||
122 | 158 | | |
123 | 159 | | |
124 | 160 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments