[en] Fix ClusterTrustBundle API reference link#56093
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for the contribution, @popsiclelmlm! Did you use AI to generate these changes? If yes, project policy requires disclosing the tooling used in the PR description. I'm asking because the Screenshots/Logs section suggests this wasn't built or tested locally before opening the PR, a common pattern with AI-generated submissions. Even for a small change, please set up your environment and verify the result; the contribution guide walks through the local setup. Holding until the AI question is answered, anyone can /unhold and approve after that. /lgtm cancel |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Summary
ClusterTrustBundlefromcertificates.k8s.io/v1alpha1tocertificates.k8s.io/v1beta1.page-api-referenceshortcode resolve the existing ClusterTrustBundle API reference page instead of rendering%!s(<nil>).Reproduction
On
/docs/reference/access-authn-authz/certificate-signing-requests/#what-s-next, the "Read about the ClusterTrustBundle API" bullet rendered%!s(<nil>)instead of a link.Root cause
The page front matter still pointed
ClusterTrustBundleatcertificates.k8s.io/v1alpha1, but the generated English API reference page iscontent/en/docs/reference/kubernetes-api/certificates/cluster-trust-bundle-v1beta1.mdwithapiVersion: "certificates.k8s.io/v1beta1". The shortcode builds API reference links by matchingkindandapiVersion, so the stale metadata produced no map entry forClusterTrustBundle.Changes
api_metadataentry forClusterTrustBundletocertificates.k8s.io/v1beta1.Tests
awk 'prev ~ /apiVersion: "certificates.k8s.io\\/v1beta1"/ && $0 ~ /kind: "ClusterTrustBundle"/ {found=1} {prev=$0} END {if (!found) exit 1; print "page metadata points to ClusterTrustBundle v1beta1"}' content/en/docs/reference/access-authn-authz/certificate-signing-requests.mdawk 'BEGIN{inmeta=0} /^---$/ {if (!inmeta) {inmeta=1; next} else {inmeta=0; exit}} inmeta && /apiVersion: "certificates.k8s.io\\/v1beta1"/ {version=1} inmeta && /kind: "ClusterTrustBundle"/ {kind=1} END {if (!(version && kind)) exit 1; print "API reference front matter is ClusterTrustBundle v1beta1"}' content/en/docs/reference/kubernetes-api/certificates/cluster-trust-bundle-v1beta1.mdgit diff --check origin/main..HEADScreenshots/Logs
hugois not installed in this environment.Issue
Related to #56092.