Commit 1227914
committed
DND-1443: migrate hpa.yaml to autoscaling/v2 and gate it
hpa.yaml emitted apiVersion: autoscaling/v2beta1, removed in Kubernetes 1.25.
On any cluster >= 1.25, autoscaling.enabled=true produced a
HorizontalPodAutoscaler the API server rejects; kubeconform (strict) also
failed it ("could not find schema for HorizontalPodAutoscaler").
- hpa.yaml: apiVersion autoscaling/v2beta1 -> autoscaling/v2, and the metrics
shape migrated to the v2 form (spec.metrics[].resource.target.type=Utilization
+ averageUtilization, instead of targetAverageUtilization).
- Add test-values/autoscaling.yaml (HPA enabled, CPU + memory targets) and
register it in the lint-render matrix so kubeconform now validates the HPA.
Previously no gated scenario enabled autoscaling, so the HPA was never
rendered or checked. helm-diff globs test-values/*.yaml and picks it up too.
No Chart.yaml version bump (deferred, handled separately), so verify-version
fails by design for now.
Verified: renders autoscaling/v2 with the v2 metrics shape; kubeconform -strict
(no HPA skip, CI-equivalent) validates all rendered resources; helm lint +
actionlint clean.1 parent 2291f5f commit 1227914
3 files changed
Lines changed: 33 additions & 3 deletions
File tree
- .github/workflows
- charts/s3proxy/templates
- test-values
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments