Problem
The gen-apidocs Markdown backend omits the ContainerStatus definition from the generated Pod API reference.
The OpenAPI input contains the complete io.k8s.api.core.v1.ContainerStatus definition, and PodStatus references it through:
containerStatuses
initContainerStatuses
ephemeralContainerStatuses
However, the generated core/pod-v1.md only displays the unlinked type ContainerStatus array.
The generated Markdown contains neither:
- a
## ContainerStatus section in pod-v1.md; nor
- a standalone
ContainerStatus page under definitions/.
As a result, the ContainerStatus schema and its fields are not reachable from the generated Markdown API reference.
Steps to reproduce
-
Clone kubernetes-sigs/reference-docs and check out master.
-
Generate the Kubernetes 1.36 Markdown API reference:
export K8S_RELEASE=1.36.0
make apimd
- Confirm that the OpenAPI input contains
ContainerStatus:
rg -n '"io.k8s.api.core.v1.ContainerStatus"' \
gen-apidocs/config/v1_36/swagger.json
The complete definition is present.
- Confirm that the generated Pod page references the type:
rg -n 'ContainerStatus array' \
gen-apidocs/build/markdown/core/pod-v1.md
This finds containerStatuses, initContainerStatuses, and ephemeralContainerStatuses.
- Search for a generated
ContainerStatus section:
rg -n '^## ContainerStatus ' \
gen-apidocs/build/markdown/core/pod-v1.md
This produces no output and exits with status 1.
- Check for a standalone definition page:
find gen-apidocs/build/markdown \
-iname '*container-status*'
This also produces no output.
Actual behavior
The generated Pod status fields contain an unlinked type:
No ContainerStatus definition is emitted anywhere in the Markdown output.
Expected behavior
ContainerStatus should be generated and reachable from the Pod API reference, either as a section in pod-v1.md or as a linked standalone definition.
Environment
- Repository:
kubernetes-sigs/reference-docs
- Branch:
master
- Backend:
markdown
- Kubernetes release:
1.36.0
- Commit:
<output of git rev-parse HEAD>
Related issues
The website issue reports the user-visible symptom, and #56463 attempted to address the generated page directly. This issue tracks the behavior reproduced using the current gen-apidocs Markdown backend.
I'm interested in working on a fix and adding a regression test.
Problem
The
gen-apidocsMarkdown backend omits theContainerStatusdefinition from the generated Pod API reference.The OpenAPI input contains the complete
io.k8s.api.core.v1.ContainerStatusdefinition, andPodStatusreferences it through:containerStatusesinitContainerStatusesephemeralContainerStatusesHowever, the generated
core/pod-v1.mdonly displays the unlinked typeContainerStatus array.The generated Markdown contains neither:
## ContainerStatussection inpod-v1.md; norContainerStatuspage underdefinitions/.As a result, the
ContainerStatusschema and its fields are not reachable from the generated Markdown API reference.Steps to reproduce
Clone
kubernetes-sigs/reference-docsand check outmaster.Generate the Kubernetes 1.36 Markdown API reference:
export K8S_RELEASE=1.36.0 make apimdContainerStatus:rg -n '"io.k8s.api.core.v1.ContainerStatus"' \ gen-apidocs/config/v1_36/swagger.jsonThe complete definition is present.
rg -n 'ContainerStatus array' \ gen-apidocs/build/markdown/core/pod-v1.mdThis finds
containerStatuses,initContainerStatuses, andephemeralContainerStatuses.ContainerStatussection:rg -n '^## ContainerStatus ' \ gen-apidocs/build/markdown/core/pod-v1.mdThis produces no output and exits with status 1.
find gen-apidocs/build/markdown \ -iname '*container-status*'This also produces no output.
Actual behavior
The generated Pod status fields contain an unlinked type:
No
ContainerStatusdefinition is emitted anywhere in the Markdown output.Expected behavior
ContainerStatusshould be generated and reachable from the Pod API reference, either as a section inpod-v1.mdor as a linked standalone definition.Environment
kubernetes-sigs/reference-docsmastermarkdown1.36.0<output of git rev-parse HEAD>Related issues
The website issue reports the user-visible symptom, and #56463 attempted to address the generated page directly. This issue tracks the behavior reproduced using the current
gen-apidocsMarkdown backend.I'm interested in working on a fix and adding a regression test.