Use sub-chart for CRDs to reduce chart size#8283
Use sub-chart for CRDs to reduce chart size#8283jukie wants to merge 6 commits intoenvoyproxy:mainfrom
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #8283 +/- ##
==========================================
- Coverage 73.57% 73.57% -0.01%
==========================================
Files 242 242
Lines 37000 37003 +3
==========================================
+ Hits 27224 27225 +1
- Misses 7854 7858 +4
+ Partials 1922 1920 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
81f8d6f to
2e6eed9
Compare
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
|
Looks good! |
|
This shouldn't have any affect on the normal user flow if I've understood it correctly |
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
|
/retest |
|
If users install CRDs separately (for example via gateway-crds-helm), they should update the install command: vs before: |
|
Good catch, thanks I'll update it. |
charts/gateway-helm/values.tmpl.yaml
Outdated
| crds: | ||
| enabled: true |
There was a problem hiding this comment.
I wonder why we need this flag since helm --skip-crds flag affects also sub charts.
There was a problem hiding this comment.
I didn't know that, thanks!
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
|
/retest |
1 similar comment
|
/retest |
We're now at the point where any CRD change will bring us over the size limit and we need to adjust the helm chart setup.
The size limit for the helm release secret is 1,048,576 bytes and an install via
make create-cluster kube-install-image kube-deployon the main branch at e56785c is 1,047,388 bytes.Failing example: https://github.com/envoyproxy/gateway/actions/runs/22075275197/job/63789996939
This change moves the crds to a separate sub-chart which won't be included in the generated helm release secret to and keeps the size under the limit (down to ~24k bytes):
This is a similar approach to what victoria-metrics did when hitting the same issue - ref VictoriaMetrics/helm-charts#603
Helm discussion: helm/helm#11493