Commit 8d2b05c
Add CI/CD validation workflow for Helm charts
Created .github/workflows/validate-helm-charts.yml to automatically
validate Helm chart tgz files and prevent corruption.
The workflow runs on:
- Pull requests that modify helm-chart files (tgz, Chart.yaml, values.yaml)
- Pushes to main/develop that touch helm-chart files
- Manual trigger via workflow_dispatch
Validation checks:
1. Operator chart tgz structure validation (via tools/validate-helm-charts.sh)
- Ensures tgz files contain only splunk-operator/ content
- Detects embedded splunk-enterprise chart corruption
- Verifies file sizes are reasonable
2. Helm lint on both splunk-operator and splunk-enterprise charts
3. Template rendering tests for common deployment patterns:
- Default values
- C3 deployment (cluster manager + indexer cluster + search head cluster)
- S1 deployment (standalone)
Benefits:
- Catches corrupted tgz files before merge
- Validates template syntax and rendering
- Provides early feedback on PRs via automated comments
- Prevents helm test failures in CI
This would have caught the splunk-operator-3.0.0.tgz corruption before
it was merged to develop.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6fc4cf6 commit 8d2b05c
1 file changed
Lines changed: 85 additions & 0 deletions
| 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 | + | |
| 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 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments