Repository navigation
docs(ingress): define platform ownership for CRD install and upgrade - #1047
NiuBlibing wants to merge 3 commits into
Conversation
|
Recommended merge order to reduce overlapping changes while keeping each PR single-topic: #1039 → #1040 → #1041 → #1042 → #1043 → #1044 → #1045 → #1046 → #1047 The PRs are intentionally all based on |
|
Updated recommended merge order after separating Admin API access policy from Ingress wiring: #1039 → #1040 → #1041 → #1042 → #1043 → #1048 → #1044 → #1045 → #1046 → #1047 Each PR remains based on |
faa4eaa to
94c11cf
Compare
membphis
left a comment
There was a problem hiding this comment.
Reviewed at 94c11cf248d5746252255afa1a210a431cda4c61 against baseline acd25584395d905511b68a20420bddf2bbd71a80.
[P1] Preserve CRD registration before installing resources that use it
Moving the APISIX CRDs from crds/ into templates/crds.yaml removes Helm's special installation step that registers CRDs and waits for them to become available before processing the remaining resources. On a fresh cluster, crds.install=true together with gatewayProxy.createDefault=true can therefore fail while Helm resolves the GatewayProxy resource type. The keep annotation addresses retention, not API discovery or installation ordering.
Please preserve the CRD-first installation contract, or separate CRD management into an explicit installation stage/chart. Cover a fresh installation with the default GatewayProxy enabled, followed by upgrade and uninstall. This combination also matters when integrating #1043. The Helm CRD documentation explains why the special directory is processed first.
[P1] Publish a reproducible dependency version instead of modifying the 1.3.0 archive
The parent Chart.yaml and Chart.lock still reference the official apisix-ingress-controller 1.3.0, but this PR replaces charts/apisix/charts/apisix-ingress-controller-1.3.0.tgz with a different payload under the same version. The repository CI runs helm dependency update, which resolves the declared repository/version and can replace these local changes with the published 1.3.0 package. That means the committed artifact and the dependency tested or rebuilt from the declaration are not reproducible.
Please publish/reference a new subchart version and update the parent declaration, lockfile and archive together. Rebuild the archive from the intended source: its templates/crds.yaml currently also contains a duplicate helm.sh/resource-policy: keep entry that is not present in the source template. Since #1043 modifies the same archive, regenerate it from the combined source after resolving that overlap.
94c11cf to
8e666ba
Compare
|
Updated at 0a51ccf. Reverted template ownership and archive rewriting. CRDs remain static CRD-first resources; the PR documents platform ownership, --skip-crds, server-side apply/diff, storedVersions/schema review, and separate Gateway API ownership. Strict test confirms normal render has no CRDs and --include-crds has the published static set. |
28e3119 to
c9adb47
Compare
Document the ownership boundary for cluster-scoped APISIX Ingress Controller and Gateway API CRDs, including platform-managed installation, schema/storedVersions review, upgrades and retention. Static Controller CRDs retain Helm's CRD-first installation path; this PR does not rewrite dependency archives or introduce CRD lifecycle hooks.
Validation:
uv run --with PyYAML python test/render/crd_lifecycle.pypassed for the render/documentation contract, including normal render and--include-crds. Documentation was regenerated. A fresh Kubernetes cluster install/upgrade/uninstall was not completed locally.Document the bundled Gateway API admission policies as cluster-scoped resources with the same owner and lifecycle as its CRDs. The API server must serve
ValidatingAdmissionPolicyandValidatingAdmissionPolicyBindingatadmissionregistration.k8s.io/v1; the previous blanket Kubernetes 1.16+ prerequisite did not describe the default bundle's requirements.Kind v1.31.0 validation of the combined chart series confirmed a default Controller/Ingress install and successful routing. Uninstalling the owning release retained the APISIX static CRD and the templated Gateway API CRDs with unchanged UIDs; Helm also reported keeping the bundle's admission policies.