Refactor CRD bootstrapping to use helmfile for one-time application #4819
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors the CRD management approach to replace the current vendored CRD system with a streamlined bootstrap process using helmfile for one-time CRD application.
Problem
The current CRD management system has several issues:
/setup/crds/vendor/
(118KB+ of YAML)Solution
Replace the vendored approach with a bootstrap-time helmfile that extracts CRDs directly from upstream Helm charts:
New Bootstrap Process
/setup/bootstrap/crds-helmfile.yaml
- Extracts CRDs from 8 Helm charts:Enhanced bootstrap task - Applies CRDs before flux installation:
task k8s-bootstrap:apps # Now includes CRD application
The task extracts CRDs using:
Comprehensive CRD Coverage
FluxCD Simplification
Removes the
core-crds
kustomization entirely:installCRDs: true
where appropriate)Benefits
✅ Cleaner Repository - Eliminates 100+ vendored files and maintenance workflows
✅ Streamlined Bootstrap - CRDs applied once during cluster setup
✅ Reduced Complexity - No periodic CRD update workflows needed
✅ Better Reliability - CRDs guaranteed present before flux manages dependent resources
✅ Improved Maintainability - Charts handle their own CRD lifecycle
Testing
The result is a much cleaner, more maintainable approach that eliminates the "unsightly proliferation of kustomization files" mentioned in the original issue while ensuring all required CRDs are available during bootstrap.
Fixes #4818.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
backube.github.io
helm repo add backube REDACTED --force-update
(dns block)get.helm.sh
curl -sL REDACTED
(dns block)https://api.github.com/repos/helmfile/helmfile/releases/latest
curl -s REDACTED
(http block)https://api.github.com/repos/mikefarah/yq/releases/latest
curl -s REDACTED
(http block)sh.joist.dev
curl -sSL REDACTED
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.