Skip to content

docs(ingress): define platform ownership for CRD install and upgrade - #1047

Open
NiuBlibing wants to merge 3 commits into
apache:masterfrom
NiuBlibing:feature/crd-ownership
Open

NiuBlibing wants to merge 3 commits into
apache:masterfrom
NiuBlibing:feature/crd-ownership

Conversation

@NiuBlibing

@NiuBlibing NiuBlibing commented Nov 13, 2026 •

Copy link
Copy Markdown

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.py passed 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 ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding at admissionregistration.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.

@NiuBlibing

Copy link
Copy Markdown
Author

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 master so their review diffs contain one topic. If upstream merges another overlapping change, only the affected topic branch needs a rebase.

@NiuBlibing

Copy link
Copy Markdown
Author

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 master and contains one topic. The sequence only reduces merge conflicts between templates and values; it is not a runtime dependency for every topic.

@membphis membphis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@NiuBlibing
NiuBlibing force-pushed the feature/crd-ownership branch from 94c11cf to 8e666ba Compare November 19, 2026 11:06
@NiuBlibing

Copy link
Copy Markdown
Author

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.

@NiuBlibing NiuBlibing changed the title feat(ingress): make CRD ownership and upgrade policy explicit docs(ingress): define platform ownership for CRD install and upgrade Nov 19, 2026
@NiuBlibing
NiuBlibing force-pushed the feature/crd-ownership branch from 28e3119 to c9adb47 Compare November 20, 2026 08:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants