aws / karpenter-provider-aws

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
https://karpenter.sh
Apache License 2.0
6.58k stars 915 forks source link

Provide Karpenter full OpenAPI CRD Specs in docs #2417

Open jonathan-innis opened 2 years ago

jonathan-innis commented 2 years ago

Is an existing page relevant?

Currently, there is not full documentation around the OpenAPI3 spec which Karpenter uses for its CRDs in the docs. If certain fields are not well-documented or there is ambiguity around what the type is for a particular field, users are forced to go to our code to find this info.

What karpenter features are relevant?

Overall usability

How should the docs be improved?

Document OpenAPI spec with auto-generated docs similar to how FluxCD does OpenAPI documentation

Community Note

jonathan-innis commented 2 years ago

For Flux, OpenAPI docs are generated here in the Makefile. Flux uses https://github.com/ahmetb/gen-crd-api-reference-docs to generate their reference documentation